bin/lesson_check.py: allow 'caution' blockquote
authorMaxim Belkin <maxim.belkin@gmail.com>
Tue, 22 Dec 2020 17:25:06 +0000 (11:25 -0600)
committerMaxim Belkin <maxim.belkin@gmail.com>
Tue, 22 Dec 2020 17:25:06 +0000 (11:25 -0600)
bin/lesson_check.py

index 0c1535758e725e50e7ef6a430153c296292f025f..b046b34cf7c157874433ad209cd13e017f8c319d 100644 (file)
@@ -59,6 +59,7 @@ P_INTERNAL_INCLUDE_LINK = re.compile(r'^{% include ([^ ]*) %}$')
 # What kinds of blockquotes are allowed?
 KNOWN_BLOCKQUOTES = {
     'callout',
+    'caution',
     'challenge',
     'checklist',
     'discussion',
@@ -72,6 +73,7 @@ KNOWN_BLOCKQUOTES = {
 }
 
 # What kinds of code fragments are allowed?
+# Below we allow all 'language-*' code blocks
 KNOWN_CODEBLOCKS = {
     'error',
     'output',