aboutsummaryrefslogtreecommitdiff
path: root/test/command
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-02-24 09:55:25 -0800
committerJohn MacFarlane <[email protected]>2023-02-24 09:55:25 -0800
commitb81ead43e03f702c78e9ed4749acfa85188468d7 (patch)
tree23cff5963df7c548dfa149862697514c9a2f935a /test/command
parentda66390f8378642e0ee146c0b73ce7c1088d565a (diff)
RST reader: align with spec in syntax for role names.
In particular, we now allow colons in row names. Closes #8653.
Diffstat (limited to 'test/command')
-rw-r--r--test/command/8653.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/command/8653.md b/test/command/8653.md
new file mode 100644
index 000000000..e1dbefb5a
--- /dev/null
+++ b/test/command/8653.md
@@ -0,0 +1,23 @@
+```
+% pandoc -f rst -t native
+.. role:: py:class(emphasis)
+
+:py:class:`foo`
+^D
+[ Para [ Emph [ Str "foo" ] ] ]
+```
+
+```
+% pandoc -f rst -t native
+:py:class:`foo`
+^D
+[ Para
+ [ Code
+ ( ""
+ , [ "interpreted-text" ]
+ , [ ( "role" , "py:class" ) ]
+ )
+ "foo"
+ ]
+]
+```