- Replace information in
/README.md
- Replace information in
/package.json
- Write extension in
/src/index.js
- Write tests in
/spec/index.test.js
- Uncomment release in
/.github/workflows/main.yml
A simple Marked extension to enable inline variables to be used.
Based on UziTech's marked-extension-template.
const marked = require("marked");
const marked-vars = require("marked-vars");
// or ES Module script
// import marked from "https://cdn.jsdelivr.net/gh/markedjs/marked/lib/marked.esm.js";
// import this extension from "https://cdn.jsdelivr.net/gh/UziTech/marked-|this-extension|/lib/index.mjs";
const options = {
enable : true
};
marked.use(marked-vars(options));
marked("[key]<<[value]\n [key]>>");
// <p> value</p>
- enable
(true|false >> default: true)
Enable use of Markdown variables.