h1
April 30, 2024 · View on GitHub
h2
h2
h3
h4
h5
h6
#h1
##h2
###h3
####h4
#####h5
######h6
测试一
测试二
测试三
a/b c-d
toc - link hey link a
toc - header :alien: emoji
toc - header code italic bold
1
verylongheaderverylongheaderverylongheaderverylongheaderverylongheader
Horizontal Line
List
- ul
- ul
- ul
- ul
- ul
- ul
- ul
- ul
-
ul
- ul
- ul
- ul
-
ul
- ul
- ul
- ul
- ul
- ul
- ul
- ul
- ol
- ol 1. ol
- ol
- ol
- ol
- ol
- ol
- ol
- ol
- ol
- ol
Text Formatting
bold
bold
italic
italic
inline code
blockquote
Combinations
first
second
third blockquote
something
something
something
something
something
something
something
something
something
something
blockquote
blockquote
blockquote
Link
https://github.com/simov/markdown-viewer
https://github.com/simov/markdown-viewer
Combinations
- italic
- bold
- bold italic
- code
- code italic
- code bold
- code bold italic
Image





Code Block
code block using indentation
fenced code block using backtick
fenced code block using tilde
GFM
Table
| table | col | col | col |
|---|---|---|---|
| default | align left | centered | align right |
| default left | align left left | something centered | something align right |
| default | align left | centered | align right |
| table | col | col | col |
|---|---|---|---|
| default | align left | centered | align right |
| default left | align left left | something centered | something align right |
| default | align left | centered | align right |
Strikethrough
strikethrough
something
something
something
something
something
something
something
something
something
something
Task List
- task
- task
- link, formatting, and
tagssupported
Line Breaks
Line 1 Line 2 Line 3
Footnotes
Something something1
And something else2, and a link3
HTML
CSS Style
HTML Tags
bold and underline
Details/Summary
Open by Default
- task
- task
Definition List
- Name
- Godzilla
- Born
- 1952
- Birthplace
- Japan
- Color
- Green
KBD
the kbd tag
Supscript/subscript
- 19th
- H2O
MathML
When , there are two solutions to and they are
Extras
Syntax Highlighting
| Syntax Highlighting inside HTML table |
|---|
|
| amazing |
MathJax
Mermaid
| Diagram inside HTML table |
|---|
|
| amazing |
Emoji
- shortcode: :wave: :alien:
- unicode: 👋 👽
- ascii: :D :/
:wave:
something :wave:
- < :wave:
- < :wave:
:wave:something :wave:- link
- emoji shortnames like
:smile:will be converted to :smile: using EmojiOne images
:smile:
console.log(':smile:')
Escapes
<em>HTML tags</em>
\ ` * _ { } # + - . ! [ ] ( )
`\(`
```
fenced code block
```
Quirks
Code block inside list
- item 1
code block
-
item 2
-
item 3
Tables inside nested lists
case 0: a table at indentation level 0, after a paragraph (at level 0) -- this should render the table not-indented
| A | B |
|---|---|
| 1 | 2 |
-
case 1: a table at indentation level 1, after a list item at level 1 -- this should render the table indented once
A B 1 2 -
case 2: a table at indentation level 2, after a list item at level 2 -- this should render the table indented twice
A B 1 2
-
case 3: a table at indentation level 1, after a a paragraph (at level 0) -- this should render the raw text into a code block
|A|B|
|-|-|
|1|2|
blank line code block
- python 3.7.9:
Some code
Here
Empty table cells
| Test | |
|---|---|
| 1 | Problem |
| Column 1 | Column 2 | Column 3 |
|---|---|---|
| This | Is | Correct |
| Rendered | Incorrect |
h2 before
h1
Problem with spaces as new-line after bold/italics followed by a period
https://github.com/simov/markdown-viewer/issues/124
line 1 **bold follwed by period**.
line 2
line 3 **bold**
line 4
line 5 *italic follwed by period*.
line 6
line 7 *italic*
line 8
line 9 text followed by period.
line 10
line 11 text
line 12
Blank line in code block breaks rendering
https://github.com/simov/markdown-viewer/issues/125
- First support:
Bold
Underline
InvertColors
ClearAttributes
ResetAllAttributes
Red
IntenseRed
OnRed
OnIntenseRed
line breaks in CJK
https://github.com/simov/markdown-viewer/issues/127
Markdown-Viewer是浏览器上最好的Markdown预览插件,能够对Md文件进行高度定制化的预 览,支持众多选项设置,易于安装,免费开源。
Footnotes
-
This reference footnote contains a paragraph...
- ...and a list