fix literal block format
This commit is contained in:
228
README.org
228
README.org
@@ -18,7 +18,7 @@
|
||||
|
||||
Add the following in your init.el
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
#+BEGIN_SRC lisp
|
||||
(require 'ox-rst)
|
||||
#+END_SRC
|
||||
|
||||
@@ -44,16 +44,16 @@
|
||||
** Title, Author, E-Mail and Date
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+TITLE: This is the title of the document
|
||||
#+AUTHOR: Author
|
||||
#+EMAIL: mailaddress@example.com
|
||||
#+DATE: 2013/12/31 00:00
|
||||
#+OPTIONS: author:t date:t email:t
|
||||
#+END_SRC
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+TITLE: This is the title of the document
|
||||
,#+AUTHOR: Author
|
||||
,#+EMAIL: mailaddress@example.com
|
||||
,#+DATE: 2013/12/31 00:00
|
||||
,#+OPTIONS: author:t date:t email:t
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
This is the title of the document
|
||||
==================================================================
|
||||
|
||||
@@ -65,22 +65,22 @@ This is the title of the document
|
||||
** Headings
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
* Heading 1
|
||||
#+BEGIN_EXAMPLE
|
||||
,* Heading 1
|
||||
|
||||
contents 1
|
||||
|
||||
** Heading 1-1
|
||||
,** Heading 1-1
|
||||
|
||||
contents 1-1
|
||||
|
||||
*** Heading 1-1-3
|
||||
,*** Heading 1-1-3
|
||||
|
||||
contents 1-1-3
|
||||
#+END_SRC
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
Heading 1
|
||||
------------------
|
||||
|
||||
@@ -100,12 +100,12 @@ contents 1-1-3
|
||||
** Table of contents
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+OPTIONS: toc:t
|
||||
#+END_SRC
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+OPTIONS: toc:t
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
.. contents::
|
||||
|
||||
#+END_SRC
|
||||
@@ -113,8 +113,8 @@ contents 1-1-3
|
||||
** Lists
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
** Lord of the Rings
|
||||
#+BEGIN_EXAMPLE
|
||||
,** Lord of the Rings
|
||||
1. The attack of the Rohirrim
|
||||
2. Eowyn's fight with the witch king
|
||||
+ this was already my favorite scene in the book
|
||||
@@ -127,10 +127,10 @@ Important actors in this film are:
|
||||
- Elijah Wood :: He plays Frodo
|
||||
- Sean Austin :: He plays Sam, Frodo's friend. I still remember
|
||||
him very well from his role as Mikey Walsh in The Goonies.
|
||||
#+END_SRC
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
Lord of the Rings
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -159,17 +159,16 @@ Sean Austin
|
||||
him very well from his role as Mikey Walsh in The Goonies.
|
||||
#+END_SRC
|
||||
|
||||
|
||||
** Special Characters
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+BEGIN_EXAMPLE
|
||||
special characters * asterisk \ backspace
|
||||
.. reStructuredText comment line
|
||||
#+END_SRC
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
special characters \* asterisk \\ backspace
|
||||
\.. reStructuredText comment line
|
||||
#+END_SRC
|
||||
@@ -181,18 +180,18 @@ special characters \* asterisk \\ backspace
|
||||
*** Verse block
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+BEGIN_VERSE
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+BEGIN_VERSE
|
||||
Great clouds overhead
|
||||
Tiny black birds rise and fall
|
||||
Snow covers Emacs
|
||||
|
||||
-- AlexSchroeder
|
||||
#+END_VERSE
|
||||
#+END_SRC
|
||||
,#+END_VERSE
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText Line Blocks:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
| Great clouds overhead
|
||||
| Tiny black birds rise and fall
|
||||
| Snow covers Emacs
|
||||
@@ -204,15 +203,15 @@ special characters \* asterisk \\ backspace
|
||||
*** Quote block
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+BEGIN_QUOTE
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+BEGIN_QUOTE
|
||||
Everything should be made as simple as possible,
|
||||
but not any simpler -- Albert Einstein
|
||||
#+END_QUOTE
|
||||
#+END_SRC
|
||||
,#+END_QUOTE
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText Literal Blocks:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
::
|
||||
|
||||
Everything should be made as simple as possible,
|
||||
@@ -220,22 +219,22 @@ Everything should be made as simple as possible,
|
||||
#+END_SRC
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+ATTR_RST: :margin 4
|
||||
#+BEGIN_QUOTE
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+ATTR_RST: :margin 4
|
||||
,#+BEGIN_QUOTE
|
||||
Everything should be made as simple as possible,
|
||||
but not any simpler -- Albert Einstein
|
||||
#+END_QUOTE
|
||||
,#+END_QUOTE
|
||||
|
||||
#+ATTR_RST: :margin 8
|
||||
#+BEGIN_QUOTE
|
||||
,#+ATTR_RST: :margin 8
|
||||
,#+BEGIN_QUOTE
|
||||
Everything should be made as simple as possible,
|
||||
but not any simpler -- Albert Einstein
|
||||
#+END_QUOTE
|
||||
#+END_SRC
|
||||
,#+END_QUOTE
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText Block Quotes:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
Everything should be made as simple as possible,
|
||||
but not any simpler -- Albert Einstein
|
||||
|
||||
@@ -244,16 +243,16 @@ but not any simpler -- Albert Einstein
|
||||
#+END_SRC
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+ATTR_RST: :directive note
|
||||
#+BEGIN_QUOTE
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+ATTR_RST: :directive note
|
||||
,#+BEGIN_QUOTE
|
||||
Everything should be made as simple as possible,
|
||||
but not any simpler -- Albert Einstein
|
||||
#+END_QUOTE
|
||||
#+END_SRC
|
||||
,#+END_QUOTE
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText Directives:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
.. note::
|
||||
|
||||
Everything should be made as simple as possible,
|
||||
@@ -261,16 +260,16 @@ but not any simpler -- Albert Einstein
|
||||
#+END_SRC
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+ATTR_RST: :directive sidebar :title sidebar title
|
||||
#+BEGIN_QUOTE
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+ATTR_RST: :directive sidebar :title sidebar title
|
||||
,#+BEGIN_QUOTE
|
||||
Everything should be made as simple as possible,
|
||||
but not any simpler -- Albert Einstein
|
||||
#+END_QUOTE
|
||||
#+END_SRC
|
||||
,#+END_QUOTE
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText Directives with title:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
.. sidebar:: sidebar title
|
||||
|
||||
Everything should be made as simple as possible,
|
||||
@@ -282,14 +281,14 @@ but not any simpler -- Albert Einstein
|
||||
Center block will not affect.
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+BEGIN_CENTER
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+BEGIN_CENTER
|
||||
center block
|
||||
#+END_CENTER
|
||||
#+END_SRC
|
||||
,#+END_CENTER
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
center block
|
||||
#+END_SRC
|
||||
|
||||
@@ -298,17 +297,15 @@ center block
|
||||
*** example block
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+NAME: label
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+NAME: label
|
||||
,#+BEGIN_EXAMPLE
|
||||
example
|
||||
#+END EXAMPLE
|
||||
#+END_SRC
|
||||
|
||||
# maybe github org parser's bug
|
||||
,#+END EXAMPLE
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
::
|
||||
:name: label
|
||||
|
||||
@@ -318,17 +315,15 @@ example
|
||||
*** src block
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+BEGIN_SRC org-mode
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+BEGIN_SRC lisp
|
||||
(require 'ox-rst)
|
||||
#+END SRC
|
||||
#+END_SRC
|
||||
|
||||
# maybe github org parser's bug
|
||||
,#+END SRC
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
.. code-block:: org-mode
|
||||
#+BEGIN_SRC rst
|
||||
.. code-block:: lisp
|
||||
|
||||
(require 'ox-rst)
|
||||
#+END_SRC
|
||||
@@ -336,24 +331,24 @@ example
|
||||
** Emphasis and monospace
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
*bold* /italic/ _underlined_ =code= ~verbatim~ +strike-through+
|
||||
#+END_SRC
|
||||
#+BEGIN_EXAMPLE
|
||||
,*bold* /italic/ _underlined_ =code= ~verbatim~ +strike-through+
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
**bold** *italic* underlined ``code`` ``verbatim`` strike-through
|
||||
#+BEGIN_SRC rst
|
||||
,**bold** *italic* underlined ``code`` ``verbatim`` strike-through
|
||||
#+END_SRC
|
||||
|
||||
** Horizontal rules
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+BEGIN_EXAMPLE
|
||||
-----
|
||||
#+END_SRC
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
------------
|
||||
#+END_SRC
|
||||
|
||||
@@ -361,14 +356,14 @@ example
|
||||
** Comment block
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+BEGIN_COMMENT
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+BEGIN_COMMENT
|
||||
comment
|
||||
#+END_COMMENT
|
||||
#+END_SRC
|
||||
,#+END_COMMENT
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
..
|
||||
comment
|
||||
#+END_SRC
|
||||
@@ -378,28 +373,28 @@ comment
|
||||
*** Images
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+ATTR_RST: :alt alternate text :align right
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+ATTR_RST: :alt alternate text :align right
|
||||
[[./image.jpg]]
|
||||
#+END_SRC
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
.. image:: ./image.jpg
|
||||
:alt: alternate text
|
||||
:align: right
|
||||
#+END_SRC
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+CAPTION: image caption
|
||||
#+NAME: label
|
||||
#+ATTR_RST: :alt alternate text :align center :scale 50%
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+CAPTION: image caption
|
||||
,#+NAME: label
|
||||
,#+ATTR_RST: :alt alternate text :align center :scale 50%
|
||||
[[./image.jpg]]
|
||||
#+END_SRC
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
.. figure:: ./image.jpg
|
||||
:alt: alternate text
|
||||
:align: center
|
||||
@@ -408,11 +403,10 @@ comment
|
||||
image caption
|
||||
#+END_SRC
|
||||
|
||||
|
||||
*** Tables
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+BEGIN_EXAMPLE
|
||||
|------+------+------|
|
||||
| TOP1 | TOP2 | TOP3 |
|
||||
|------+------+------|
|
||||
@@ -422,10 +416,10 @@ comment
|
||||
|------+------+------|
|
||||
| END1 | END2 | END3 |
|
||||
|------+------+------|
|
||||
#+END_SRC
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
.. table::
|
||||
|
||||
+------+------+------+
|
||||
@@ -440,9 +434,9 @@ comment
|
||||
#+END_SRC
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+CAPTION: caption
|
||||
#+NAME: label
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+CAPTION: caption
|
||||
,#+NAME: label
|
||||
|------+------+------|
|
||||
| TOP1 | TOP2 | TOP3 |
|
||||
|------+------+------|
|
||||
@@ -452,10 +446,10 @@ comment
|
||||
|------+------+------|
|
||||
| END1 | END2 | END3 |
|
||||
|------+------+------|
|
||||
#+END_SRC
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
.. table:: caption
|
||||
:name: label
|
||||
|
||||
@@ -473,16 +467,16 @@ comment
|
||||
** Hyperlinks
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+BEGIN_EXAMPLE
|
||||
[[http://orgmode.org][Org Mode]]
|
||||
|
||||
[[http://orgmode.org]]
|
||||
|
||||
[[label]]
|
||||
#+END_SRC
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
`Org Mode <http://orgmode.org/>`_
|
||||
|
||||
`http://orgmode.org`_
|
||||
@@ -493,11 +487,11 @@ comment
|
||||
** Export reStructuredText fragments
|
||||
|
||||
Org:
|
||||
#+BEGIN_SRC org-mode
|
||||
#+RST: .. class:: alert
|
||||
#+END_SRC
|
||||
#+BEGIN_EXAMPLE
|
||||
,#+RST: .. class:: alert
|
||||
#+END_EXAMPLE
|
||||
|
||||
reStructuredText:
|
||||
#+BEGIN_SRC rst-mode
|
||||
#+BEGIN_SRC rst
|
||||
.. class:: alert
|
||||
#+END_SRC
|
||||
|
||||
Reference in New Issue
Block a user