diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-05-05 21:57:30 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-05-05 21:57:30 -0700 |
commit | 98ee6ca289ad7117b7336a57bcfc6f4b54463f4e (patch) | |
tree | 0e965fec088759a4d6b8157f3668cc9e1ad16a31 /src/Text/Pandoc/Writers | |
parent | 5affa30e8ad8b5c6ce31240ecd271fd4cccab219 (diff) | |
download | pandoc-98ee6ca289ad7117b7336a57bcfc6f4b54463f4e.tar.gz |
Asciidoc writer: use `` `+...+` `` form for inline code.
The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
To get a pure literal code span, use `` `+a__b__c+` ``.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/AsciiDoc.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/AsciiDoc.hs b/src/Text/Pandoc/Writers/AsciiDoc.hs index 47738e69d..31827fd69 100644 --- a/src/Text/Pandoc/Writers/AsciiDoc.hs +++ b/src/Text/Pandoc/Writers/AsciiDoc.hs @@ -436,7 +436,7 @@ inlineToAsciiDoc opts (Quoted qt lst) = do | isAsciidoctor -> [Str "\"`"] ++ lst ++ [Str "`\""] | otherwise -> [Str "``"] ++ lst ++ [Str "''"] inlineToAsciiDoc _ (Code _ str) = return $ - text "`" <> text (escapeStringUsing (backslashEscapes "`") str) <> "`" + text "`+" <> text (escapeStringUsing (backslashEscapes "`") str) <> "+`" inlineToAsciiDoc _ (Str str) = return $ text $ escapeString str inlineToAsciiDoc _ (Math InlineMath str) = do isAsciidoctor <- gets asciidoctorVariant |