From 575014975e5ede206791c9389f07aeb2af9fe652 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 15 Feb 2017 17:35:51 +0100 Subject: Fix indirect hyperlink targets. Closes #512. --- test/command/512.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 test/command/512.md (limited to 'test') diff --git a/test/command/512.md b/test/command/512.md new file mode 100644 index 000000000..a13c434f6 --- /dev/null +++ b/test/command/512.md @@ -0,0 +1,41 @@ +``` +% pandoc -f rst +`click here`__ or `click here`__ + +.. _link1: http://www.example.com/ +.. _link2: http://johnmacfarlane.net/pandoc/ + +__ link1_ +__ link2_ +^D +

click here or click here

+``` + +Multiple indirection: + +``` +% pandoc -f rst +`click here`__ + +.. _link1: link2_ +.. _link2: http://johnmacfarlane.net/pandoc/ + +__ link1_ +^D +

click here

+``` + +Loop detection: + +``` +% pandoc -f rst +`click here`__ + +.. _link1: link2_ +.. _link2: link1_ + +__ link1_ +^D +

click here

+``` + -- cgit v1.2.3