Demo
this is sample document
title and table of content
markdown
The result is above. #
is for the document title.
The table of contents above is to level 3
and the caption is toc caption
This sample markdown is modified from the document of markdown-it.
Heading
markdown
result
Heading2
Heading3
Heading4
Heading5
Horizontal Rules
markdown
Horizontal Rules does not work.
BR
markdown
result
next line is <br>
test
upper line is <br>
new page
markdown
result
next line is <!-- word newPage -->
upper line is <!-- word newPage -->
Typographic replacements
NOTE: All @ are replaced to ”\@” in markdown to docx.
Emphasis
markdown
result
This is bold text
This is bold text
This is italic text
This is italic text
Strikethrough
2xy
Emphasis2
markdown
result
This is bold text
This is bold text
This is italic text
This is italic text
Strikethrough
2xy
NOTE: Sometime Emphasis does not work. That time, please add some spaces between words.
Blockquotes
NOTE: markdown to docx does not support blockquote.
markdown
result
Blockquotes can also be nested…
…by using additional greater-than signs right next to each other…
- eeeeeeeee
…or with spaces between arrows.
Lists Unordered
NOTE: markdown to docx supports only three layers.
markdown
result
- Create a list by starting a line with
+
,-
, or*
- Sub-lists are made by indenting 2 spaces:
- Marker character change forces new list start:
- Ac tristique libero volutpat at
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Marker character change forces new list start:
- Very easy!
Lists ordered
markdown
result
-
Lorem ipsum dolor sit amet fffffa2xyaffff
-
Consectetur adipiscing elit
-
Integer molestie lorem at massa
-
You can use sequential numbers…
-
…or keep all the numbers as
1.
NOTE: markdown to docx does not support numbering with offset:
- foo
- bar
Lists mixed
markdown
result
- ordered1
- unordered2
- ordered3
- unordered2
Code
markdown
result
Inline code
Indented code
markdown
result
Block code syntax highlighting
NOTE: markdown to docx does not support Syntax highlighting.
Tables
normal table
markdown
result
data1-1 | data1-2 |
---|---|
data2-1 | data2-2 |
data3-1 | data3-2 |
data4-1 | data4-2 |
merge cells No.1
- cell(3,1) and cell(4,2) are merged.
markdown
result
data1-1 | data1-2 |
---|---|
data2-1 | data2-2 |
data3-2 | |
data4-1 |
merge cells No.2
markdown
result
tableParamcell(4,2) is not merged. (comment cell)
data1-1 | data1-2 |
---|---|
data2-1 | data2-2 |
data3-2 | |
data4-1 |
table with emphasis
markdown
result
data1-1 | data1-2 |
---|---|
data2-1 | This is italic text |
2xy | |
data4-1 | This is bold text |
table column width
markdown
result
data1-1 | data1-2 |
---|---|
data2-1 | data2-2 |
data3-1 | data3-2 |
data4-1 | data4-2 |
Right aligned and rows merge
markdown
result
data1-1 | data1-2 |
---|---|
data2-1 | data2-2 XXXXX |
data3-1 | data3-2 |
data4-1 | data4-2 |
NOTE: aligned is not worked
table with new line
markdown
result
data1-1 | data1-2 |
---|---|
data2-1 | data2-2 |
data3-1 | data3-2 data3-2-2 |
data4-1 | data4-2 |
NOTE: does not work
Links
cross reference in a docx
markdown
result
refs1
refs2 with space
- look me refs1 send you
- look me refs2 with space send you
normal link
look you link text see me
Jason Campbell jasoncampbell@google.com (http://twitter.com/jxson)
-
Autoconverted link https://github.com/nodeca/pica (enable linkify to see)
Images
markdown
result
sorry no image.
NOTE: markdown to docx supports only image files.
NOTE: Inline images do not work well.
Math
markdown
result
This sentence uses dollar sign delimiters to show math inline: $\sqrt{3x-1}+(1+x)^2$ $\sqrt{3x-1}+(1+x)^2$
$\sqrt{3x-1}+(1+x)^2$
NOTE: math works so so.
Admonition
markdown
result
NOTE: admonition note.
WARNING: admonition warning.