diff options
| author | John MacFarlane <[email protected]> | 2022-11-19 12:44:25 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-11-19 12:44:25 -0800 |
| commit | bb0fd13bcba5459e48bafc9be2b2e2d573e22863 (patch) | |
| tree | 405efdc96e26e579b77bac9e0fa6b7b2b978f982 | |
| parent | 127ded4faec946164dfc4dc11c489cd2d5aaf679 (diff) | |
RST reader: support `mark` role for round-trip.
| -rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index cd7d9e4cb..dd95810ba 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -1440,6 +1440,7 @@ renderRole contents fmt role attr = case role of "superscript" -> return $ B.superscript $ treatAsText contents "sub" -> return $ B.subscript $ treatAsText contents "subscript" -> return $ B.subscript $ treatAsText contents + "mark" -> return $ B.spanWith ("",["mark"],[]) $ treatAsText contents "emphasis" -> return $ B.emph $ treatAsText contents "strong" -> return $ B.strong $ treatAsText contents "rfc-reference" -> return $ rfcLink contents |
