From ef4f5143593d24f426c830006b77b7c0e837b9de Mon Sep 17 00:00:00 2001 From: Leonard Rosenthol Date: Thu, 10 Sep 2020 12:40:35 -0400 Subject: Implement support for internal document links in ICML (#6606) Closes #5541. --- test/command/5541-localLink.md | 149 +++++++++++++++++++++++++++++++++++++++++ test/command/5541-nesting.md | 97 +++++++++++++++++++++++++++ test/command/5541-urlLink.md | 112 +++++++++++++++++++++++++++++++ 3 files changed, 358 insertions(+) create mode 100644 test/command/5541-localLink.md create mode 100644 test/command/5541-nesting.md create mode 100644 test/command/5541-urlLink.md (limited to 'test/command') diff --git a/test/command/5541-localLink.md b/test/command/5541-localLink.md new file mode 100644 index 000000000..924607b3b --- /dev/null +++ b/test/command/5541-localLink.md @@ -0,0 +1,149 @@ +``` +% pandoc -f markdown -t icml -s + +# Header 1 + +this is some text + +## Header 2 + +some more text that [links to](#header-1) the first header. And this links to [some text](#spanner) in 2.1. + +## Header 2.1 + +if you can read this text, [and it's linked]{#spanner} - all good! + +^D + + + + + + + + + $ID/NormalCharacterStyle + + + + + + + + + LeftAlign + . + + 10 + + + + + + + $ID/NormalParagraphStyle + + + + + $ID/NormalParagraphStyle + + + + + $ID/NormalParagraphStyle + + + + + + + + + + + + + + + + + Header 1 + + +
+ + + this is some text + + +
+ + + + Header 2 + + +
+ + + some more text that + + + + the first header. And this links to + + + + in 2.1. + + +
+ + + + Header 2.1 + + +
+ + + if you can read this text, + + + + and it’s linked + + + - all good! + + + +
+ + + Black + HyperlinkTextDestination/#spanner + + + + + Black + HyperlinkTextDestination/#header-1 + + +
+``` \ No newline at end of file diff --git a/test/command/5541-nesting.md b/test/command/5541-nesting.md new file mode 100644 index 000000000..616184f5c --- /dev/null +++ b/test/command/5541-nesting.md @@ -0,0 +1,97 @@ +``` +% pandoc -f html -t icml -s + +
+
+ + + +
+
+ +^D + + + + + + + + + $ID/NormalCharacterStyle + + + + + + + + + LeftAlign + . + + 10 + + + + + + + $ID/NormalParagraphStyle + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $ID/Embedded + + + + + + + + + + + + + + + +``` \ No newline at end of file diff --git a/test/command/5541-urlLink.md b/test/command/5541-urlLink.md new file mode 100644 index 000000000..3c10490df --- /dev/null +++ b/test/command/5541-urlLink.md @@ -0,0 +1,112 @@ +``` +% pandoc -f markdown -t icml -s + +# Header 1 + +this is some text + +## Header 2 + +some more text that [links to](https://www.pandoc.org) Pandoc. + +^D + + + + + + + + + $ID/NormalCharacterStyle + + + + + + + + + LeftAlign + . + + 10 + + + + + + + $ID/NormalParagraphStyle + + + + + $ID/NormalParagraphStyle + + + + + $ID/NormalParagraphStyle + + + + + + + + + + + + + + + + + Header 1 + + +
+ + + this is some text + + +
+ + + + Header 2 + + +
+ + + some more text that + + + + Pandoc. + + + +
+ + + + Black + HyperlinkURLDestination/https%3a//www.pandoc.org + + +
+``` \ No newline at end of file -- cgit v1.2.3