Understøt HTML i Markdown-filer
This commit is contained in:
parent
f6c73cf906
commit
3d4c79cc83
|
@ -56,7 +56,7 @@ evalFunctionIO f x = case (f, x) of
|
|||
|
||||
(RunPandoc, String s) -> do
|
||||
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
|
||||
|
||||
_ ->
|
||||
|
|
Loading…
Reference in New Issue