581a3514ca
* Use a Span with class "title-reference" for the default title-reference role. * Use B.text to split up contents into Spaces, SoftBreaks, and Strs for title-reference. * Use Code with class "interpreted-text" instead of Span and Str for unknown roles. (The RST writer has also been modified to round-trip this properly.) * Disallow blank lines in interpreted text. * Backslash-escape now works in interpreted text. * Backticks followed by alphanumerics no longer end interpreted text. Closes #4811.
13 lines
227 B
Markdown
13 lines
227 B
Markdown
```
|
|
% pandoc -f native -t rst
|
|
[Para [Code ("",["interpreted-text"],[("role","foo")]) "text"]]
|
|
^D
|
|
:foo:`text`
|
|
```
|
|
|
|
```
|
|
% pandoc -f rst -t native
|
|
:foo:`text`
|
|
^D
|
|
[Para [Code ("",["interpreted-text"],[("role","foo")]) "text"]]
|
|
```
|