From b94f1e2045d8113f57adabf6c4e475c744a8ce80 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 14 Dec 2017 12:47:15 -0800 Subject: RST reader: more accurate parsing of references. Previously we erroneously included the enclosing backticks in a reference ID (closes #4156). This change also disables interpretation of syntax inside references, as in docutils. So, there is no emphasis in `my *link*`_ --- test/command/4156.md | 10 ++++++++++ test/command/rst-links.md | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 test/command/4156.md create mode 100644 test/command/rst-links.md (limited to 'test/command') diff --git a/test/command/4156.md b/test/command/4156.md new file mode 100644 index 000000000..073537d1f --- /dev/null +++ b/test/command/4156.md @@ -0,0 +1,10 @@ +``` +% pandoc -f rst +.. _`SOMEID`: + +foo +^D +
+

foo

+
+``` diff --git a/test/command/rst-links.md b/test/command/rst-links.md new file mode 100644 index 000000000..496bebc54 --- /dev/null +++ b/test/command/rst-links.md @@ -0,0 +1,18 @@ +``` +% pandoc -f rst +`*ab*`_ + +.. _`*ab*`: foo +^D +

*ab*

+``` + +``` +% pandoc -f rst +`A B +c`_ + +.. _A B C: foo +^D +

A B c

+``` -- cgit v1.2.3