Use fenced_code extension
parent
e87547b5f6
commit
f4e766cbe0
|
@ -138,6 +138,7 @@ def compile_markdown(file_path:str) -> str:
|
|||
"""Given a string of markdown, compiles it and returns the result."""
|
||||
return markdown(
|
||||
slurp(file_path),
|
||||
extensions=[markdown.extensions.fenced_code],
|
||||
output_format='html5')
|
||||
|
||||
def compile_plaintext(file_path:str) -> str:
|
||||
|
|
Loading…
Reference in New Issue