From 42429c1e891729020fb35b047f5e55fa962c3c8d Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Wed, 14 Feb 2018 02:57:37 +0000 Subject: [PATCH] rst --- .gitignore | 2 ++ adoc.adoc | 53 ++++++++++++++++++++++++++++++++++++++++++----------- rst.rst | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 11 deletions(-) create mode 100644 rst.rst diff --git a/.gitignore b/.gitignore index 9ad5518..374698e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .bzr +adoc.html +rst.html tmp diff --git a/adoc.adoc b/adoc.adoc index 0abc6ae..462022e 100644 --- a/adoc.adoc +++ b/adoc.adoc @@ -1,4 +1,4 @@ -= h1 += Asciidoc :idprefix: :idseparator: - :sectanchors: @@ -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 :-( +<> -include::.git/HEAD[] +<> -include::include.adoc[] +<> + +== Hyperlinks + +link:http://example.com[example site] + +link:adoc.adoc + +link::adoc.adoc + +link:adoc.adoc[] + +link::adoc.adoc[] -== Another section +== Images -<> +[[my-png,My png]] +.My amazing png +[link=http://www.flickr.com/photos/javh/5448336655] +image::png.png[] -<> +<> -<> +== 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 +|=== + +<> + +== include + +GitHub renders it as a link as of 2015-09-23: no path transversal :-( + +include::.git/HEAD[] + +include::include.adoc[] diff --git a/rst.rst b/rst.rst new file mode 100644 index 00000000..efe0d3f --- /dev/null +++ b/rst.rst @@ -0,0 +1,42 @@ +reStructuredText +================ + +.. contents:: + +Headers +------- + +Header 3 1 +---------- + +asdf + +Header 3 2 +---------- + +qwer + +.. _custom-id: + +Header Custon Id +---------------- + +qwer + +Hyperlink +......... + +`example link `_ + +Hyperlink_ + +`Header 3 1`_ + +`custom-id`_ + +`Custom id <#custom-id>`_ + +Bibliography +------------ + +- http://docutils.sourceforge.net/docs/user/rst/quickref.html