Markdown Preview 0.0.10
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.rmdalongside 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 defaultHTMLFormatterdoesn't escape those characters in text or code. A newEscapingHTMLFormatterwalker handles escaping while still passing raw HTML blocks through verbatim per CommonMark.
Contributors
Thanks to the external contributors who shipped in this release: