What MDViewer renders and edits today, plus short notes on the last two releases.
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 … ###### Title
Text style menu
Custom heading id
## Title {#my-id}
Text style → Heading ID…
Paragraph
plain text
Text style → Paragraph
Bold
**text**
B
Italic
*text*
I
Strikethrough
~~text~~
S
Highlight
==text==
H
Carousel
```carousel fence, slides separated by <!-- slide -->
*[HTML]: HyperText Markup Language (tooltip on every match)
More → Abbreviation…
Definition list
Term then : definition
More → 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 HTML
See 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 keycaps
Press <kbd>Ctrl</kbd>+<kbd>S</kbd>
Yes
Yes
<details> / <summary>
Collapsible section
FAQs, long logs, spoilers
Yes
Yes (summary saved as plain text)
<sup> / <sub>
Superscript / subscript
x<sup>2</sup>
Yes (x² / x₂)
Yes, saved as ^2^ / ~2~
<br>
Line break inside a paragraph
line1<br>line2
No
Yes, saved as a hard break
<ins>
Underlined / inserted text
<ins>new</ins>
No
No (text stays, underline lost)
<img width="200">
Image with a set size
<img src="logo.png" width="200">
No
No (saved as )
<div align="center">
Centered content
README logos and badges
No
No (content stays, centering lost)
<!-- … -->
Hidden author comment
Notes for authors
No
No (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
```mermaid
Shown 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, links
Only 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

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.