Esc

comark-diff

Getting started

Install comark-diff and register it.

Usage

Register the plugin and pass the renderer's components:

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

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

The renderer inlines the styles once per document, and the output needs no script. Add Comark's shiki plugin to keep the code's highlighting. Renderers covers using it with other plugins.