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.
2 parents be0125b + cbf9d49 commit 5db215bCopy full SHA for 5db215b
util/export.py
@@ -22,7 +22,10 @@ def parse_code_block(match):
22
lines = []
23
24
for line in match.group(0).split('\n'):
25
- if not line.startswith('# '):
+ # fix syntax highlighting for headers like ```rust,ignore
26
+ if line.startswith('```rust'):
27
+ lines.append('```rust')
28
+ elif not line.startswith('# '):
29
lines.append(line)
30
31
return '\n'.join(lines)
0 commit comments