From 83822dc9300303606ecbe73363a90c6ac236355b Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 27 Dec 2020 16:41:18 +0100 Subject: [PATCH] Stop guessing language, to allow for plaintext code blocks --- articles/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/models.py b/articles/models.py index d87fdd6..c5daa92 100644 --- a/articles/models.py +++ b/articles/models.py @@ -83,7 +83,7 @@ class Article(AdminUrlMixin, models.Model): md = markdown.Markdown( extensions=[ "extra", - CodeHiliteExtension(linenums=False), + CodeHiliteExtension(linenums=False, guess_lang=False), LazyLoadingImageExtension(), ] )