From 98ee6ca289ad7117b7336a57bcfc6f4b54463f4e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 5 May 2019 21:57:30 -0700 Subject: 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+` ``. --- src/Text/Pandoc/Writers/AsciiDoc.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3