From 2b89aaf04dd2d1bdafa0ee507abefd4f0d6df271 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 14 May 2018 10:37:46 -0700 Subject: Make internal links work in ODT/OpenDocument. This adds proper bookmarks to the headers with non-null IDs. Closes #4358. --- test/writer.opendocument | 97 ++++++++++++++++++++++++++---------------------- 1 file changed, 53 insertions(+), 44 deletions(-) (limited to 'test/writer.opendocument') diff --git a/test/writer.opendocument b/test/writer.opendocument index 081b33971..535130c0a 100644 --- a/test/writer.opendocument +++ b/test/writer.opendocument @@ -803,23 +803,31 @@ This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite. -Headers -Level 2 with an +Headers +Level +2 with an embedded -link -Level 3 with -emphasis -Level 4 -Level 5 -Level 1 -Level 2 with -emphasis -Level 3 +link +Level +3 with +emphasis +Level +4 +Level +5 +Level +1 +Level +2 with +emphasis +Level +3 with no blank line -Level 2 +Level +2 with no blank line -Paragraphs +Paragraphs Here’s a regular paragraph. In Markdown 1.0.0 and earlier. Version @@ -830,8 +838,8 @@ criminey. There should be a hard line breakhere. -Block -Quotes +Block +Quotes E-mail style: This is a block quote. It is pretty short. @@ -855,8 +863,8 @@ short. 2 > 1. And a following paragraph. -Code -Blocks +Code +Blocks Code: ---- (should be four hyphens) @@ -870,8 +878,8 @@ Blocks These should not be escaped: \$ \\ \> \[ \{ -Lists -Unordered +Lists +Unordered Asterisks tight: @@ -944,7 +952,7 @@ Blocks Minus 3 -Ordered +Ordered Tight: @@ -1007,7 +1015,7 @@ Blocks Item 3. -Nested +Nested Tab @@ -1068,8 +1076,8 @@ paragraphs: Third -Tabs and -spaces +Tabs +and spaces this is a list item indented with @@ -1089,8 +1097,8 @@ spaces -Fancy list -markers +Fancy +list markers begins with 2 @@ -1157,8 +1165,8 @@ item: M.A. 2007 B. Williams -Definition -Lists +Definition +Lists Tight using spaces: apple red fruit @@ -1225,8 +1233,8 @@ fruit sublist -HTML -Blocks +HTML +Blocks Simple block on one line: foo @@ -1262,8 +1270,8 @@ spaces on the line: <hr /> Hr’s: -Inline -Markup +Inline +Markup This is emphasized, and so is this. @@ -1300,8 +1308,9 @@ Hmany of themO. These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d. -Smart quotes, -ellipses, dashes +Smart +quotes, ellipses, +dashes “Hello,” said the spider. “‘Shelob’ is my name.” ‘A’, ‘B’, and ‘C’ are letters. @@ -1319,7 +1328,7 @@ five. 1987–1999. Ellipses…and…and…. -LaTeX +LaTeX @@ -1371,8 +1380,8 @@ five. Here’s a LaTeX table: -Special -Characters +Special +Characters Here is some unicode: @@ -1415,8 +1424,8 @@ it. Plus: + Minus: - -Links -Explicit +Links +Explicit Just a URL. URL @@ -1433,7 +1442,7 @@ and title Email link Empty. -Reference +Reference Foo bar. With @@ -1453,8 +1462,8 @@ by itself should be a link. bar. Foo biz. -With -ampersands +With +ampersands Here’s a link with an ampersand in the URL. @@ -1467,7 +1476,7 @@ link. Here’s an inline link in pointy braces. -Autolinks +Autolinks With an ampersand: http://example.com/?foo=1&bar=2 @@ -1489,7 +1498,7 @@ link in pointy braces. <http://example.com/> or here: <http://example.com/> -Images +Images From “Voyage dans la Lune” by Georges Melies (1902): @@ -1498,7 +1507,7 @@ Georges Melies (1902): icon. -Footnotes +Footnotes Here is a footnote reference,1Here is the footnote. It can go anywhere after the footnote reference. It need not -- cgit v1.2.3