diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2021-06-07 23:34:19 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2021-06-07 23:34:19 -0600 |
commit | dd01e2521bb86666a19fab8710a1a086bfd1ec48 (patch) | |
tree | 926eb06b37d97ec777c903aad30700593524aaf1 | |
parent | 1476b8daddeb65866476d98ea951e45dbe48321d (diff) |
fix bug on new extensions
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/pyssg/pyssg.py | 18 |
2 files changed, 15 insertions, 8 deletions
@@ -1,6 +1,11 @@ CHANGES ======= +v0.5.8 +------ + +* add new extensions + v0.5.7 ------ diff --git a/src/pyssg/pyssg.py b/src/pyssg/pyssg.py index 0978e63..8e54f71 100644 --- a/src/pyssg/pyssg.py +++ b/src/pyssg/pyssg.py @@ -6,7 +6,7 @@ from typing import Union from jinja2 import Environment, FileSystemLoader from markdown import Markdown -import yafg +from yafg import YafgExtension from MarkdownHighlight.highlight import HighlightExtension from markdown_checklist.extension import ChecklistExtension @@ -160,13 +160,15 @@ def main() -> None: 'smarty', 'toc', 'wikilinks', - yafg.YafgExtension(stripTitle=True, - figureClass="", - figcaptionClass="", - figureNumbering=False, - figureNumberClass="number", - figureNumberText="Figure"), - HighlightExtension, + # stripTitle generates an error when True, + # if there is no title attr + YafgExtension(stripTitle=False, + figureClass="", + figcaptionClass="", + figureNumbering=False, + figureNumberClass="number", + figureNumberText="Figure"), + HighlightExtension(), ChecklistExtension()] md: Markdown = Markdown(extensions=exts, output_format='html5') |