summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/pyssg/pyssg.py18
2 files changed, 15 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index e77d59e..de1c8f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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')