Esc

comark-embed

Getting started

Install comark-embed and register it.

Usage

Register the plugin and pass the renderer's components:

import { createHtmlRenderer } from "@comark/html";
import embed, { components } from "comark-embed/html";

const render = createHtmlRenderer({ plugins: [embed()], components });
ts

For Vue, React, or Svelte, import from comark-embed/vue, comark-embed/react, or comark-embed/svelte; the components add the styles when they mount. Import comark-embed/style.css with your styles so a server-rendered page doesn't shift. Renderers covers using it with other plugins.