Skip to content

Commit

Permalink
rst
Browse files Browse the repository at this point in the history
  • Loading branch information
cirosantilli committed Feb 14, 2018
1 parent 4ca5972 commit 42429c1
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.bzr
adoc.html
rst.html
tmp
53 changes: 42 additions & 11 deletions adoc.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= h1
= Asciidoc
:idprefix:
:idseparator: -
:sectanchors:
Expand All @@ -8,22 +8,53 @@

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

== h2
== Headings

== include
=== Heading 3 1

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

include::.git/HEAD[]
<<Heading 3 1>>

include::include.adoc[]
<<heading-3-1,asdfqwer>>

== Hyperlinks

link:http://example.com[example site]

link:adoc.adoc

link::adoc.adoc

link:adoc.adoc[]

link::adoc.adoc[]

== Another section
== Images

<<another-section>>
[[my-png,My png]]
.My amazing png
[link=http://www.flickr.com/photos/javh/5448336655]
image::png.png[]

<<Another section>>
<<my-png>>

<<another-section,asdfqwer>>
== Tables

[[]]
[[my-table,My table]]
.My amazing table
|===
|Name of Column 1 |Name of Column 2 |Name of Column 3
|Cell in column 1, row 1 |Cell in column 2, row 1 |Cell in column 3, row 1
|Cell in column 1, row 2 |Cell in column 2, row 2 |Cell in column 3, row 2
|===

<<my-table>>

== include

GitHub renders it as a link as of 2015-09-23: no path transversal :-(

include::.git/HEAD[]

include::include.adoc[]
42 changes: 42 additions & 0 deletions rst.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
reStructuredText
================

.. contents::

Headers
-------

Header 3 1
----------

asdf

Header 3 2
----------

qwer

.. _custom-id:

Header Custon Id
----------------

qwer

Hyperlink
.........

`example link <http://www.example.com/>`_

Hyperlink_

`Header 3 1`_

`custom-id`_

`Custom id <#custom-id>`_

Bibliography
------------

- http://docutils.sourceforge.net/docs/user/rst/quickref.html

0 comments on commit 42429c1

Please sign in to comment.