github pluk-inc/markdown-preview v0.0.10
Markdown Preview 0.0.10

latest releases: v0.0.44, v0.0.43, v0.0.42...
3 months ago

LaTeX math rendering, broader Markdown file-format support, and a rendering fix for inline HTML in body text and code.

Added

  • LaTeX math now renders via KaTeX. Inline math ($…$, \(…\)) and display math ($$…$$, \[…\]) are typeset on load in both the app and the Quick Look extension. KaTeX ships inside the bundle, so previews work offline.
  • More Markdown file types open natively. Added .mkd, .mkdn, .mdwn, .mdtxt, .mdtext, and .rmd alongside the existing .md / .markdown / .mdown / .txt. Quick Look and the Open With list pick the app up for these extensions too.

Fixed

  • Math extraction skips code spans and fences. Dollar signs and \(…\) sequences inside backticks or fenced code blocks are no longer mistaken for math, so snippets like `$PATH` and code samples render verbatim instead of being eaten by the math pass.
  • HTML in body text and code is now properly escaped. a < b, Tom & Jerry, `<div>`, and fenced code containing <, >, or & previously rendered mangled or vanished entirely because swift-markdown's default HTMLFormatter doesn't escape those characters in text or code. A new EscapingHTMLFormatter walker handles escaping while still passing raw HTML blocks through verbatim per CommonMark.

Contributors

Thanks to the external contributors who shipped in this release:

Don't miss a new markdown-preview release

NewReleases is sending notifications on new releases.