Skip to content

v1.2.0 — Bundle marked@11, drop inline parser

Choose a tag to compare

@msarson msarson released this 17 May 10:14
· 7 commits to main since this release

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 marked has been removed entirely, and marked.min.js is now bundled locally under Resources/ — no CDN dependency, works offline.
  • Configuration: gfm: true (GitHub-flavored extensions on), breaks: false (CommonMark behavior).
  • Mermaid rendering preserved via a code renderer override that maps ```mermaid fences 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.highlightElement auto-detected and applied speculative tinting. The post-processing selector now requires an explicit language-… class.
  • Dark-mode CSS specificity bug where the inline code background was winning over pre code, giving nested code blocks a mismatched background. Added a dark-mode-specific pre code rule.

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).