Skip to content

Commit 3ab1afe

Browse files
committed
rst
1 parent 4ca5972 commit 3ab1afe

File tree

3 files changed

+82
-11
lines changed

3 files changed

+82
-11
lines changed

Diff for: .gitignore

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

Diff for: adoc.adoc

+38-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,49 @@
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+
== Images
2030

21-
== Another section
31+
[[my-png,My png]]
32+
.My amazing png
33+
[link=http://www.flickr.com/photos/javh/5448336655]
34+
image::png.png[]
2235

23-
<<another-section>>
36+
<<my-png>>
2437

25-
<<Another section>>
38+
== Tables
2639

27-
<<another-section,asdfqwer>>
40+
[[my-table,My table]]
41+
.My amazing table
42+
|===
43+
|Name of Column 1 |Name of Column 2 |Name of Column 3
44+
|Cell in column 1, row 1 |Cell in column 2, row 1 |Cell in column 3, row 1
45+
|Cell in column 1, row 2 |Cell in column 2, row 2 |Cell in column 3, row 2
46+
|===
2847

29-
[[]]
48+
<<my-table>>
49+
50+
== include
51+
52+
GitHub renders it as a link as of 2015-09-23: no path transversal :-(
53+
54+
include::.git/HEAD[]
55+
56+
include::include.adoc[]

Diff for: 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)