@hpcc-js/markdown-it-plugins
v1.5.5
Published
markdown-it plugins
Readme
@hpcc-js/markdown-it-plugins
Collection of plugins and extensions for markdown-it and VitePress.
Quick Start
Simple example of using the exec directive to execute ObservableHQ style JavaScript code in markdown:
- Install with your package manager of choice:
npm install --save @hpcc-js/markdown-it-plugins- Initialise
markdown-itas normal andusetheobservableplugin:
import markdownit from "markdown-it";
import { observable } from "@hpcc-js/markdown-it-plugins";
const md = markdownit({
html: true,
linkify: true,
typographer: true
});
const md = markdownit();
md.use(observable);
const html = md.render(`\
# Hello World - I am ${age} years old!
\`\`\`js exec
age = 20 + 1;
\`\`\`
`);Which will produce: Hello World - I am 21 years old!
Documentation
- ObservableHQ style notebook Integration:
- ECL Code Highlighting
