aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-12-10 23:55:08 +0100
committerJohn MacFarlane <[email protected]>2025-12-10 23:55:08 +0100
commita6fae6b78018f2d7998eb7c9432c2d00400f209b (patch)
tree68ade79a0a2aeee3410909d6ad28a291714b812b /src/Text
parentb6339f9baadfca351a890ff399d7bf3eb4c0f075 (diff)
Org: don't include 'example' class when parsing org example blocks.
These are just unmarked code blocks. Closes #11339.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Org/Blocks.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Org/Blocks.hs b/src/Text/Pandoc/Readers/Org/Blocks.hs
index e95874ca8..9c9123a47 100644
--- a/src/Text/Pandoc/Readers/Org/Blocks.hs
+++ b/src/Text/Pandoc/Readers/Org/Blocks.hs
@@ -231,7 +231,7 @@ exampleBlock blockAttrs _label = do
newline
content <- rawBlockContent "example"
let id' = fromMaybe mempty $ blockAttrName blockAttrs
- let codeBlck = B.codeBlockWith (id', "example":classes, kv) content
+ let codeBlck = B.codeBlockWith (id', classes, kv) content
return . return $ codeBlck
rawBlockLines :: Monad m => (Text -> F Blocks) -> Text -> OrgParser m (F Blocks)
@@ -558,7 +558,7 @@ example = try $ returnF . exampleCode . T.unlines =<< many1 exampleLine
exampleLine = try $ exampleLineStart *> anyLine
exampleCode :: Text -> Blocks
-exampleCode = B.codeBlockWith ("", ["example"], [])
+exampleCode = B.codeBlockWith ("", [], [])
--