Supported Markdown & Recent Changes

Supported Markdown

MDViewer renders CommonMark and GitHub Flavored Markdown along with footnotes, GitHub alerts, and built-in extensions for carousels, highlights, subscript/superscript, emoji, abbreviations, definition lists, and tables of contents.

Element Syntax Editor toolbar
Headings 1–6# Title … ###### TitleText style menu
Custom heading id## Title {#my-id}Text style → Heading ID…
Paragraphplain textText style → Paragraph
Bold**text**B
Italic*text*I
Strikethrough~~text~~S
Highlight==text==H
Carousel```carousel fence, slides separated by <!-- slide -->–
SubscriptH~2~Ox₂
Superscriptx^2^x²
Inline code`code`</>
Bullet list- item• List
Numbered list1. item1. List
Task list- [ ] task / - [x] done☐ Task
Blockquote> text“ Quote
Alert box> [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], [!CAUTION]⚠ Alert menu
Code block```js … ``` (syntax highlighted, Copy button){ } Code (choose or change language)
Horizontal rule---―
Link[text](https://…), <https://…>, mailto:…, reference linksLink
Image![alt](images/pic.png) (relative paths resolve to document folder)Image
TableGFM pipe table (mismatched delimiter rows auto-repaired)Table (insert, rows/columns)
Table column alignment:---, :---:, ---:Table → Align Left / Center / Right
Footnotetext[^1] … [^1]: noteMore → Footnote
Emoji:smile:, :rocket:, :+1: (GitHub shortcodes)More → Emoji…
Abbreviation*[HTML]: HyperText Markup Language (tooltip on every match)More → Abbreviation…
Definition listTerm then : definitionMore → Definition List
Table of contents[TOC] on its own line (built from headings)More → Table of Contents
Front matter--- YAML --- at the top (shown as a metadata box)More → Front Matter
Keyboard key<kbd>Ctrl</kbd>Ctrl button
Collapsible section<details> <summary>Title</summary> … </details>More → Collapsible Section
Other inline HTMLSee the table below (sanitized)– (type in Code mode)

Note: A single-tilde word (~x~) is subscript, so write strikethrough as ~~x~~. Saving from Editor mode normalizes Markdown formatting (bullets become -, emphasis *); use Code mode to keep the raw source untouched.

Inline HTML

Markdown allows raw HTML for elements without dedicated syntax. Unsafe markup such as <script>, <style>, event handlers like onclick, and inline style="…" attributes are stripped for security. Code mode always preserves the exact source.

Tag Purpose Example Editor toolbar Kept when saving from Editor
<kbd>Keyboard keys, drawn as keycapsPress <kbd>Ctrl</kbd>+<kbd>S</kbd>YesYes
<details> / <summary>Collapsible sectionFAQs, long logs, spoilersYesYes (summary saved as plain text)
<sup> / <sub>Superscript / subscriptx<sup>2</sup>Yes (x² / x₂)Yes, saved as ^2^ / ~2~
<br>Line break inside a paragraphline1<br>line2NoYes, saved as a hard break
<ins>Underlined / inserted text<ins>new</ins>NoNo (text stays, underline lost)
<img width="200">Image with a set size<img src="logo.png" width="200">NoNo (saved as ![](logo.png))
<div align="center">Centered contentREADME logos and badgesNoNo (content stays, centering lost)
<!-- … -->Hidden author commentNotes for authorsNoNo (comment removed)

Not Yet Supported

These syntax features are shown as plain text or as a code block instead of being rendered:

Element Example Note
Math (LaTeX)$E = mc^2$, $$ … $$Would require KaTeX/MathJax
Mermaid / other diagrams```mermaidShown as a code block
Wiki links[[Other Page]]Use standard links: [Other Page](other-page.md)
Attribute lists on other elements{.class} on paragraphs, images, linksOnly heading IDs ({#id}) are supported
Custom containers / admonitions::: warning … :::Use GitHub alerts (> [!WARNING])
Inserted text++text++Use <ins>text</ins>
Inline CSS<span style="color:red">style attributes and <style> blocks are removed for security
Images on network shares![](\\server\share\a.png)Blocked so Windows doesn't leak credentials; copy images locally
Spoilers, citations, media embeds>!spoiler!<, [@cite], @[youtube](id)Not planned

Recent Changes

The last two releases of MDViewer in one sentence each.

v1.9.0

The cursor now stays in place when switching between Viewer, Editor and Code mode, spellcheck covers the whole document in Editor and Code mode, empty lines typed in the Editor are kept as blank lines, and MDViewer asks before reloading a file another program changed.

v1.8.0

Table columns aligned with :---: or ---: (or the Editor's table buttons) show centered or right-aligned again.