Turns Argdown code fences into svg argument maps
npm install @argdown/remark-pluginThis package is part of the Argdown project and adds Argdown support to the marked Markdown parser.
For a more detailed documentation, read the guide on how to use Argdown in Markdown.
Here are the basics from it:
Install marked and @argdown/marked-plugin in your package:
``sh`
npm install marked @argdown/marked-plugin
Configure the marked instance:
`javascript
import marked from "marked";
import { addArgdownSupportToMarked } from "../src/argdown-marked-plugin";
const markedWithArgdown = addArgdownSupportToMarked(
marked,
new marked.Renderer(),
{}
);
const markdownInput =
\\\argdown\
[s]
<-
\\;``
const htmlOutput = markedWithArgdown(markdownInput);
console.log(htmlOutput);