import { type Extension } from "https://deno.land/x/charmd@v0.1.2/renderer.ts";
Methods
optional
init(md: string, options: Options): string | voidCalled before AST generation, if a string is returned, it will override the input markdown for later extension's init fn and processing steps
Called with each node
Called with each node. It should return the string representation of the rendered node,if the extension handles that specific node, or void, if its not handled by the extension.
optional
postGenerate(rendered: string, options: Options): stringCalled after the string representation is created.