From a933ad30fb0ae7309f8ac14616337cfc95cdb7cd Mon Sep 17 00:00:00 2001 From: Florian B Date: Tue, 15 Oct 2019 22:42:51 +0200 Subject: Add support for reading & writing elements Parse elements from HTML as HTML span like elements, with a single class matching the tag name `mark`. Mark elements are rendered to HTML using the native element. Fixes https://github.com/jgm/pandoc/issues/5797. --- test/command/5797.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/command/5797.md (limited to 'test/command/5797.md') diff --git a/test/command/5797.md b/test/command/5797.md new file mode 100644 index 000000000..0509a341c --- /dev/null +++ b/test/command/5797.md @@ -0,0 +1,20 @@ +``` +% pandoc -f html -t html +Ctrl-C +^D +Ctrl-C +``` + +``` +% pandoc -f html -t native +Ctrl-C +^D +[Plain [Span ("",["mark"],[]) [Str "Ctrl-C"]]] +``` + +``` +% pandoc -f native -t html +[Plain [Span ("",["mark"],[]) [Str "Ctrl-C"]]] +^D +Ctrl-C +``` -- cgit v1.2.3