v1.2.0 — Bundle marked@11, drop inline parser
Changed
- Markdown preview is now powered by marked.js 11.2.0 (#8). The inline ~120-line minimal parser that was shadowing the CDN-loaded
markedhas been removed entirely, andmarked.min.jsis now bundled locally underResources/— no CDN dependency, works offline. - Configuration:
gfm: true(GitHub-flavored extensions on),breaks: false(CommonMark behavior). - Mermaid rendering preserved via a
coderenderer override that maps```mermaidfences to<div class="mermaid">…</div>.
Added (features that previously rendered as plain text or broken markup)
- GFM tables, task lists (
- [ ]/- [x]), strikethrough (~~text~~), autolinks (bare URLs and<https://...>) - Hard line breaks (two trailing spaces before
\n) - Escaped characters (
\*,\#, etc.) - Inline HTML passthrough (CommonMark compliant)
- Reference-style links, setext headings, nested lists
Fixed
- No-language fenced code blocks now render as plain monospace — previously
hljs.highlightElementauto-detected and applied speculative tinting. The post-processing selector now requires an explicitlanguage-…class. - Dark-mode CSS specificity bug where the inline
codebackground was winning overpre code, giving nested code blocks a mismatched background. Added a dark-mode-specificpre coderule.
Acknowledgments
Many thanks to Christopher Jeffrey and the marked.js contributors, and Knut Sveidqvist and the Mermaid contributors, whose open source work makes the preview pane possible.
Install
Extract ClarionMarkdownEditor-v1.2.0.zip into <ClarionRoot>\accessory\addins\ClarionMarkdownEditor\ (the .addin file must land in the root of that folder).