summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-11-26 22:18:18 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-11-26 22:18:18 -0600
commit2d99be5909522384b5c7ae9547117c7948971641 (patch)
treeafd982b97555b56c85002db9042db23eab5c658d /src
parentb53928cf4f703b8b63388f17614a13cbe6f1b619 (diff)
replace uncompatible highlighter/markerv0.7.3
Diffstat (limited to 'src')
-rw-r--r--src/pyssg/md_parser.py3
-rw-r--r--src/pyssg/per_level_formatter.py3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pyssg/md_parser.py b/src/pyssg/md_parser.py
index 8148536..759ead6 100644
--- a/src/pyssg/md_parser.py
+++ b/src/pyssg/md_parser.py
@@ -6,7 +6,6 @@ from logging import Logger, getLogger
from markdown import Markdown
from yafg import YafgExtension
-from MarkdownHighlight.highlight import HighlightExtension
from markdown_checklist.extension import ChecklistExtension
from .database import Database
@@ -30,8 +29,8 @@ def _get_md_obj() -> Markdown:
figureNumbering=False,
figureNumberClass="number",
figureNumberText="Figure"),
- HighlightExtension(),
ChecklistExtension(),
+ 'pymdownx.mark',
'pymdownx.caret',
'pymdownx.tilde']
log.debug('list of md extensions: (%s)',
diff --git a/src/pyssg/per_level_formatter.py b/src/pyssg/per_level_formatter.py
index 7b93890..5ab3946 100644
--- a/src/pyssg/per_level_formatter.py
+++ b/src/pyssg/per_level_formatter.py
@@ -1,6 +1,7 @@
from logging import Formatter, DEBUG, INFO, WARNING, ERROR, CRITICAL
-
+# only reason for this class is to get info formatting as normal text
+# and everything else with more info and with colors
class PerLevelFormatter(Formatter):
# colors for the terminal in ansi
__YELLOW: str = "\x1b[33m"