diff options
| author | Albert Krewinkel <[email protected]> | 2021-05-21 17:47:25 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-08-01 10:03:48 -0700 |
| commit | f4a7c0b79980975b43dcbacb65377c26e8a34a35 (patch) | |
| tree | 6980947265afaa4fbd0be8cbcdfea9fe46e844bc /test | |
| parent | 82bf0cb9d4ec211ac9da8efc934371cd063b57ae (diff) | |
Markdown reader: allow more attributes in special spans
Spans with "smallcaps" as the first class are converted to *SmallCaps*
elements. While previously no other classes or attributes were allowed,
additional classes, attributes, and an identifier are not permitted and
kept in a *SmallCaps* wrapping *Span* element.
The same change is applied to underline spans, where the first class
must be either "ul" or "underline".
Closes: #4102
Diffstat (limited to 'test')
| -rw-r--r-- | test/command/4102.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/command/4102.md b/test/command/4102.md new file mode 100644 index 000000000..88e2a4ddb --- /dev/null +++ b/test/command/4102.md @@ -0,0 +1,11 @@ +SmallCaps spans can have additional attributes. +``` +% pandoc -t latex -f markdown +[Populus]{.smallcaps lang=la} + +[Romanus]{.smallcaps} +^D +\foreignlanguage{latin}{\textsc{Populus}} + +\textsc{Romanus} +``` |
