@xcon-workflow/markdown-it
v0.1.1
Published
Markdown-it plugin for public XCON workflow diagrams.
Readme
@xcon-workflow/markdown-it
Markdown-it plugin for rendering safe, public XCON Workflow fences.
Supported fences:
xcon-workflowworkflowxcon-nodexcon-action
The plugin parses workflow SKETCH or JSON, validates it, and renders a static diagram plus diagnostics. It never executes the workflow.
Install
npm install @xcon-workflow/markdown-itQuick usage
import MarkdownIt from 'markdown-it';
import xconWorkflowMarkdownIt from '@xcon-workflow/markdown-it';
const md = new MarkdownIt({ html: true }).use(xconWorkflowMarkdownIt);
const html = md.render(`
\`\`\`workflow
workflow "Product detail click"
saveSelected: saveData
target "global"
key "selectedProductId"
data "= item.id"
\`\`\`
`);