We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce5c22 commit 0c92757Copy full SHA for 0c92757
bin/lesson_check.py
@@ -227,7 +227,17 @@ def read_references(reporter, ref_path):
227
with open(ref_path, 'r', encoding='utf-8') as reader:
228
for (num, line) in enumerate(reader, 1):
229
230
- if P_INTERNAL_INCLUDE_LINK.search(line): continue
+ # Skip empty lines
231
+ if length(line.strip()) == 0:
232
+ continue
233
+
234
+ # Skip HTML comments
235
+ if line.strip().startswith("<!--") and line.strip().endswith("-->"):
236
237
238
+ # Skip Liquid's {% include ... %} lines
239
+ if P_INTERNAL_INCLUDE_LINK.search(line):
240
241
242
m = P_INTERNAL_LINK_DEF.search(line)
243
0 commit comments