Skip to content

Commit 42429c1

Browse files
committed
rst
1 parent 4ca5972 commit 42429c1

File tree

3 files changed

+86
-11
lines changed

3 files changed

+86
-11
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.bzr
2+
adoc.html
3+
rst.html
24
tmp

adoc.adoc

+42-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= h1
1+
= Asciidoc
22
:idprefix:
33
:idseparator: -
44
:sectanchors:
@@ -8,22 +8,53 @@
88

99
Preamble. This paragraph has some magic properties just because it is before the first h2. E.g., the Toc will go after it.
1010

11-
== h2
11+
== Headings
1212

13-
== include
13+
=== Heading 3 1
1414

15-
GitHub renders it as a link as of 2015-09-23: no path transversal :-(
15+
<<heading-3-1>>
1616

17-
include::.git/HEAD[]
17+
<<Heading 3 1>>
1818

19-
include::include.adoc[]
19+
<<heading-3-1,asdfqwer>>
20+
21+
== Hyperlinks
22+
23+
link:http://example.com[example site]
24+
25+
link:adoc.adoc
26+
27+
link::adoc.adoc
28+
29+
link:adoc.adoc[]
30+
31+
link::adoc.adoc[]
2032

21-
== Another section
33+
== Images
2234

23-
<<another-section>>
35+
[[my-png,My png]]
36+
.My amazing png
37+
[link=http://www.flickr.com/photos/javh/5448336655]
38+
image::png.png[]
2439

25-
<<Another section>>
40+
<<my-png>>
2641

27-
<<another-section,asdfqwer>>
42+
== Tables
2843

29-
[[]]
44+
[[my-table,My table]]
45+
.My amazing table
46+
|===
47+
|Name of Column 1 |Name of Column 2 |Name of Column 3
48+
|Cell in column 1, row 1 |Cell in column 2, row 1 |Cell in column 3, row 1
49+
|Cell in column 1, row 2 |Cell in column 2, row 2 |Cell in column 3, row 2
50+
|===
51+
52+
<<my-table>>
53+
54+
== include
55+
56+
GitHub renders it as a link as of 2015-09-23: no path transversal :-(
57+
58+
include::.git/HEAD[]
59+
60+
include::include.adoc[]

rst.rst

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
reStructuredText
2+
================
3+
4+
.. contents::
5+
6+
Headers
7+
-------
8+
9+
Header 3 1
10+
----------
11+
12+
asdf
13+
14+
Header 3 2
15+
----------
16+
17+
qwer
18+
19+
.. _custom-id:
20+
21+
Header Custon Id
22+
----------------
23+
24+
qwer
25+
26+
Hyperlink
27+
.........
28+
29+
`example link <http://www.example.com/>`_
30+
31+
Hyperlink_
32+
33+
`Header 3 1`_
34+
35+
`custom-id`_
36+
37+
`Custom id <#custom-id>`_
38+
39+
Bibliography
40+
------------
41+
42+
- http://docutils.sourceforge.net/docs/user/rst/quickref.html

0 commit comments

Comments
 (0)