Browse Source

comments

pull/67/head
adam j hartz 1 month ago
parent
commit
bf97652fa8
Signed by: hz <hartz@mit.edu> GPG Key ID: 5FDD2840E179AD62
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      catsoop/language.py

+ 3
- 0
catsoop/language.py View File

@@ -227,8 +227,11 @@ def md_pre_handle(context, xml=True):
"""
text = context["cs_content"]

# remove comments
text = re.sub(_environment_matcher("comment"), "", text)

# allow inline markdown processing inside of <div> tags starting with a
# blank line
text = re.sub(r"<div([^>]*)>\n\s*?\n", r"<div\1 markdown>\n\n", text)

text = _md_format_string(context, text, False)


Loading…
Cancel
Save