Skip to content

v1.1.2 — Strip trailing # on ATX headings

Choose a tag to compare

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

Fixed

  • Trailing # characters on ATX headings were not removed in the preview (#3, reported by Pierre-Jean Quinto). The inline markdown parser stripped the leading #s but left the optional closing # sequence in the rendered text, so # Introduction # rendered as Introduction # instead of Introduction. Per CommonMark §4.2, the closing # sequence — when preceded by whitespace — is decorative and must be stripped. Added a second .replace(/\s+#+\s*$/, '') to the heading text extraction in markdown-editor.js.

Install

Extract ClarionMarkdownEditor-v1.1.2.zip into <ClarionRoot>\accessory\addins\ClarionMarkdownEditor\ (the .addin file must land in the root of that folder).