aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-11-24 11:01:21 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-11-24 11:01:55 -0800
commit6072bdcec95df9f537b22fb7df4a5f8ea7958189 (patch)
tree6234b23cf7e8e24cb4b2535aee2ad505bb230a8e /test
parenta8638894ab698cc0e49757a2732e383b652834bc (diff)
downloadpandoc-6072bdcec95df9f537b22fb7df4a5f8ea7958189.tar.gz
HTML reader: parse attributes on links and images.
Closes #6970.
Diffstat (limited to 'test')
-rw-r--r--test/command/5986.md4
-rw-r--r--test/command/6970.md12
2 files changed, 14 insertions, 2 deletions
diff --git a/test/command/5986.md b/test/command/5986.md
index ed8dd30c9..c181e33ad 100644
--- a/test/command/5986.md
+++ b/test/command/5986.md
@@ -6,8 +6,8 @@
<p><span id="nav.xhtml"></span></p>
<nav epub:type="landmarks" id="landmarks" hidden="hidden">
<ol>
-<li><a href="text/title_page.xhtml">Title Page</a></li>
-<li><a href="#nav.xhtml#toc">Table of Contents</a></li>
+<li><a href="text/title_page.xhtml" class="titlepage">Title Page</a></li>
+<li><a href="#nav.xhtml#toc" class="toc">Table of Contents</a></li>
</ol>
</nav>
<p><span id="ch001.xhtml"></span></p>
diff --git a/test/command/6970.md b/test/command/6970.md
new file mode 100644
index 000000000..45d9b76bd
--- /dev/null
+++ b/test/command/6970.md
@@ -0,0 +1,12 @@
+```
+% pandoc -f html -t native
+<a name="foo" class="bar baz" href='https://example.com' target='_blank'>https://example.com<a>
+^D
+[ Plain
+ [ Link
+ ( "foo" , [ "bar" , "baz" ] , [ ( "target" , "_blank" ) ] )
+ [ Str "https://example.com" ]
+ ( "https://example.com" , "" )
+ ]
+]
+```