aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2021-05-21 17:47:25 +0200
committerJohn MacFarlane <[email protected]>2022-08-01 10:03:48 -0700
commitf4a7c0b79980975b43dcbacb65377c26e8a34a35 (patch)
tree6980947265afaa4fbd0be8cbcdfea9fe46e844bc /test/command
parent82bf0cb9d4ec211ac9da8efc934371cd063b57ae (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/command')
-rw-r--r--test/command/4102.md11
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}
+```