From 2d99be5909522384b5c7ae9547117c7948971641 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 26 Nov 2022 22:18:18 -0600 Subject: replace uncompatible highlighter/marker --- src/pyssg/md_parser.py | 3 +-- src/pyssg/per_level_formatter.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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" -- cgit v1.2.3-70-g09d2