Headers h1/h2/h3/h4/h5/h6

September 24, 2023 · View on GitHub

h1

h2

h3

h4

h5
h6

Text i/b/code/s/mark/ins/sup/sub/abbr/kbd

ElementMDOutputHTMLOutput
italic*italic*italic<i>italic
bold**bold**bold<b>bold
code`code`code<code>code
strikethrough~~strikethrough~~strikethrough<s>strikethrough
mark==mark====mark==<mark>mark
ins++ins++++ins++<ins>ins
sup^sup^a^sup^<sup>asup
sub~sub~asub<sub>asub
abbr*[word]: Textword<abbr>abbr
kbd<kbd>kbd

*[word]: Text

Line Breaks br

Line 1 Line 2 Line 3

CJK: あおえ うい

Typography

  • ellipsis ...
  • single 'quotes'
  • double "quotes"
  • dash --
  • symbols (c) (C) (r) (R) (tm) (TM) +-

Blockquote blockquote

paragraph

paragraph

nested

block

quotes

Link a

List ul/ol/li

  • ul
    • ul
      • ul
  1. ol
  2. ol
  3. ol

Table table/thead/th/tbody/tr/td

defaultleftcenteredright
defaultalign leftcenteredalign right
default leftalign left leftcentered centeredalign right right
defaultalign leftcenteredalign right

Definition List dl/dt/dd

Type : Extension

Name : Markdown Viewer

Type
Extension
Name
Markdown Viewer

Task List

  • task
  • task

Footnotes

Something something1

And something else2, and a link3

Image img

cat tied

cat walk

Code Block pre

fenced code block using backticks
var foo = 'syntax highlighting using Prism.js'
%% Diagrams using Mermaid.js %%

sequenceDiagram
  Alice->>+John: Hello John, how are you?
  Alice->>+John: John, can you hear me?
  John-->>-Alice: Hi Alice, I can hear you!
  John-->>-Alice: I feel great!

Emoji

:smile:

MathJax

J(θ)=1mi=1m[y(i) log(hθ(x(i)))+(1y(i)) log(1hθ(x(i)))]+λ2mj=1nθj2J(\theta) = - \frac{1}{m} \sum_{i=1}^m [ y^{(i)}\ \log (h_\theta (x^{(i)})) + (1 - y^{(i)})\ \log (1 - h_\theta(x^{(i)}))] + \frac{\lambda}{2m}\sum_{j=1}^n \theta_j^2

MathML math

When a0 , there are two solutions to ax2 + bx + c = 0 and they are x = b ± b2 4ac 2a .

Details details/summary

Open by Default
  • task
  • task
Click to Expand
var code = 'block'

Inner Header

link

Custom Attributes

Check out this header id {#foo}


Styles

CSS

Underline

Inline Code

  • regular

  • italic

  • boldbold italic

Blockquotes

regular

italic

bold

code

code bold

code bold italic

Strikethrough

  • regular
  • italic
  • boldbold italic
  • codecode italiccode bold italic

code bold italic


Example Text

Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.

The following is rendered as bold text.

The following is rendered as italicized text.

fenced code block using backticks

This is a blockquote Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

  • Nullam congue mollis metus
  • Donec massa sapien
  • Tristique ac metus sit amet
  1. Nullam congue mollis metus
  2. Donec massa sapien
  3. Tristique ac metus sit amet
NameScoreTime
John2455s
Doe11352m:15s
Duh15s

Footnotes

  1. https://github.com/simov/markdown-viewer

  2. This reference footnote contains a paragraph...

    • ...and a list
  3. https://github.com/simov/markdown-viewer