Understøt HTML i Markdown-filer

This commit is contained in:
Niels G. W. Serup 2024-09-30 23:34:52 +02:00
parent f6c73cf906
commit 3d4c79cc83
No known key found for this signature in database
GPG Key ID: 38EEEBCE67324F19
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ evalFunctionIO f x = case (f, x) of
(RunPandoc, String s) -> do (RunPandoc, String s) -> do
contents <- T.readFile s contents <- T.readFile s
html <- P.runIOorExplode (P.writeHtml5 P.def =<< P.readMarkdown P.def contents) html <- P.runIOorExplode (P.writeHtml5 P.def =<< P.readMarkdown (P.def { P.readerExtensions = P.extensionsFromList [ P.Ext_raw_html ] }) contents)
pure $ Text $ TL.toStrict $ B.renderHtml html pure $ Text $ TL.toStrict $ B.renderHtml html
_ -> _ ->