1
0
Fork 0
forked from github/pelican

Tweak Markdown-not-installed console warnings

Adding single-quotation marks should cause 'markdown' to be highlighted
in green, presumably via Rich.
This commit is contained in:
Justin Mayer 2024-06-25 10:49:07 +02:00
commit 6a50191728
2 changed files with 4 additions and 4 deletions

View file

@ -353,8 +353,8 @@ class MarkdownReader(BaseReader):
def disabled_message(self) -> str: def disabled_message(self) -> str:
return ( return (
"Could not import markdown.Markdown. " "Could not import 'markdown.Markdown'. "
"Have you installed the markdown package?" "Have you installed the 'markdown' package?"
) )

View file

@ -322,6 +322,6 @@ class TestPelican(LoggedTestCase):
self.assertLogCountEqual( self.assertLogCountEqual(
1, 1,
".*article_with_md_extension.md: " ".*article_with_md_extension.md: "
"Could not import markdown.Markdown. " "Could not import 'markdown.Markdown'. "
"Have you installed the markdown package?", "Have you installed the 'markdown' package?",
) )