diff options
author | Daniele D'Orazio <d.dorazio96@gmail.com> | 2019-10-09 10:10:08 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-10-15 09:49:09 -0700 |
commit | 1425bf9a6549da00ca87832dc6f19d59269a6a83 (patch) | |
tree | 5afee855bf9c867ed2fce0edfd6ecf14fb04c02a /test/command | |
parent | a1977dd2d67e6ccbafaf7ac25f941bdd399469fa (diff) | |
download | pandoc-1425bf9a6549da00ca87832dc6f19d59269a6a83.tar.gz |
Add support for reading and writing <kbd> elements
* Text.Pandoc.Shared: export `htmlSpanLikeElements` [API change]
This commit also introduces a mapping of HTML span like elements that
are internally represented as a Span with a single class, but that are
converted back to the original element by the html writer. As of now,
only the kbd element is handled this way. Ideally these elements should
be handled as plain AST values, but since that would be a breaking
change with a large impact, we revert to this stop-gap solution.
Fixes https://github.com/jgm/pandoc/issues/5796.
Diffstat (limited to 'test/command')
-rw-r--r-- | test/command/5805.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/command/5805.md b/test/command/5805.md new file mode 100644 index 000000000..8bfc75f2d --- /dev/null +++ b/test/command/5805.md @@ -0,0 +1,20 @@ +``` +% pandoc -f html -t html +<kbd>Ctrl-C</kbd> +^D +<kbd>Ctrl-C</kbd> +``` + +``` +% pandoc -f html -t native +<kbd>Ctrl-C</kbd> +^D +[Plain [Span ("",["kbd"],[]) [Str "Ctrl-C"]]] +``` + +``` +% pandoc -f native -t html +[Plain [Span ("",["kbd"],[]) [Str "Ctrl-C"]]] +^D +<kbd>Ctrl-C</kbd> +``` |