diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-08-05 09:15:06 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-08-05 09:56:43 -0700 |
commit | 581a3514ca266e20e70f05d9ffe314515a0a7bb9 (patch) | |
tree | 58f8a9603c3470f9f529107e179d887c9c4690b5 /test/Tests/Readers | |
parent | f7dc3e7487d80847b376c132acc985ccb9833bc2 (diff) | |
download | pandoc-581a3514ca266e20e70f05d9ffe314515a0a7bb9.tar.gz |
RST reader: improve parsing of inline interpreted text roles.
* 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.
Diffstat (limited to 'test/Tests/Readers')
-rw-r--r-- | test/Tests/Readers/RST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Tests/Readers/RST.hs b/test/Tests/Readers/RST.hs index 540c5d45a..8916eed6f 100644 --- a/test/Tests/Readers/RST.hs +++ b/test/Tests/Readers/RST.hs @@ -177,7 +177,7 @@ tests = [ "line block with blank line" =: =: ".. role:: haskell(code)\n.. role:: lhs(haskell)\n\n:lhs:`text`" =?> para (codeWith ("", ["lhs", "haskell", "sourceCode"], []) "text") , "unknown role" =: ":unknown:`text`" =?> - para (spanWith ("",[],[("role","unknown")]) (str "text")) + para (codeWith ("",["interpreted-text"],[("role","unknown")]) "text") ] , testGroup "footnotes" [ "remove space before note" =: T.unlines |