Commit 5c5e783f authored by Marien Fressinaud's avatar Marien Fressinaud

add: Enable CodeHilite ext for articles markdown

parent 94fc1a98
......@@ -8,7 +8,10 @@ import pytz
class Article:
def __init__(self, slug, article_content, configuration={}, serie=None):
# We convert the file's content into HTML
md = markdown.Markdown(extensions=["meta", "fenced_code", "attr_list"])
md = markdown.Markdown(
extensions=["meta", "fenced_code", "attr_list", "codehilite"],
extension_configs={"codehilite": {"css_class": "highlight"}},
)
content = md.convert(article_content)
# We get the local variables from the Markdown file (metadata)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment