Created
November 16, 2016 14:56
-
-
Save weakish/0751d510b2b65be1fc1bf86c91af55d0 to your computer and use it in GitHub Desktop.
common subset of #MarkDown, #ReStructedText, and #AsciiDoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MarkDown vs. ReStructuredText vs. Asciidoc | |
========================================== | |
.:: | |
**strong emphasis text** | |
``literal`` (compatible with Asciidoctor) | |
> blockquote is compatible with Asciidoctor, | |
* unordered list item | |
- unordered list item | |
1. ordered list item | |
---- for horizontal rule (compatible with Asciidoctor). | |
main title for document | |
======================== | |
(see below) | |
title | |
----------------- | |
Compatibel with Asciidoc python, | |
using it implicitly set `compat-mode` in Asciidoctor, | |
(without new Asciidoctor syntax). | |
Summary | |
-------- | |
.:: | |
**storg** | |
* unordered list | |
- unordered list | |
1. ordered list | |
main title | |
========== | |
title | |
------ | |
Workarounds | |
----------- | |
.:: | |
[Link][1] will display as link in [MarkDown][2], | |
and literal in ReStructuredText and AsciiDoc. | |
[1]: http://example.com | |
[2]: http://example.com | |
ReStructuredText requires the precedding paragraph of literal block ends with `::`, | |
which is used to mark label list in AsciiDoc. | |
However, AsciiDoc allows a string beginning with dot | |
to specify filename of source code, which will be parsed literally. | |
Combining those we have .::, \n, four-spaces indented literal block. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment