From fb47d1d90978110e778986a80f33a1d7438a4d35 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 3 Mar 2017 22:23:01 +0100 Subject: RST reader: support RST-style citations. The citations appear at the end of the document as a definition list in a special div with id `citations`. Citations link to the definitions. Added stateCitations to ParserState. Closes #853. --- test/command/853.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/command/853.md (limited to 'test/command') diff --git a/test/command/853.md b/test/command/853.md new file mode 100644 index 000000000..54eb416a9 --- /dev/null +++ b/test/command/853.md @@ -0,0 +1,18 @@ +reStructuredText citations. + +``` +% pandoc -f rst +Here is a citation reference: [CIT2002]_. + +.. [CIT2002] This is the citation. It's just like a footnote, + except the label is textual. +^D +

Here is a citation reference: [CIT2002].

+
+
+
CIT2002
+

This is the citation. It's just like a footnote, except the label is textual.

+
+
+
+``` -- cgit v1.2.3