@argdown/remark-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.7.7 • Public • Published

@argdown/marked-plugin

Argdown logo

This 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:

How to add Argdown support to Marked

Install marked and @argdown/marked-plugin in your package:

npm install marked @argdown/marked-plugin

Configure the marked instance:

import marked from "marked";
import { addArgdownSupportToMarked } from "../src/argdown-marked-plugin";

const markedWithArgdown = addArgdownSupportToMarked(
  marked,
  new marked.Renderer(),
  {}
);
const markdownInput = `
# Argdown in Markdown

\`\`\`argdown
[s]
    <- <a>
\`\`\`
`;
const htmlOutput = markedWithArgdown(markdownInput);
console.log(htmlOutput);

Package Sidebar

Install

npm i @argdown/remark-plugin

Weekly Downloads

2

Version

1.7.7

License

MIT

Unpacked Size

21.9 kB

Total Files

14

Last publish

Collaborators

  • christianvoigt