Understøt HTML i Markdown-filer
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
  _ ->
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user