summaryrefslogtreecommitdiff
path: root/src/pyssg/pyssg.py
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-04-18 01:06:14 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-04-18 01:06:14 -0600
commit4ece6fa800b0534efe768e7e8ec520dffb0d1b33 (patch)
tree96957394d57be15dc94779194164532c3b31a6b6 /src/pyssg/pyssg.py
parent0169725f9c3318e94b23e34b6e9fbe95e900f813 (diff)
fix pyssg and database errors
fixed md extensions debug line, refactored and fixed read function for database for the case when there is no db file yet
Diffstat (limited to 'src/pyssg/pyssg.py')
-rw-r--r--src/pyssg/pyssg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pyssg/pyssg.py b/src/pyssg/pyssg.py
index 4de80d5..2f0730f 100644
--- a/src/pyssg/pyssg.py
+++ b/src/pyssg/pyssg.py
@@ -111,7 +111,9 @@ def main() -> None:
figureNumberText="Figure"),
HighlightExtension(),
ChecklistExtension()]
- log.debug('list of md extensions: (%s)', ', '.join(exts))
+ log.debug('list of md extensions: (%s)',
+ ', '.join([e if isinstance(e, str) else type(e).__name__
+ for e in exts]))
log.debug('initializing markdown parser')
md: Markdown = Markdown(extensions=exts,
output_format='html5')