Browse Source

fix for <section*> tag handling

resolves #78
pull/73/head
adam j hartz 1 month ago
parent
commit
6861fd5352
Signed by: hz <hartz@mit.edu> GPG Key ID: 5FDD2840E179AD62
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      catsoop/language.py

+ 1
- 1
catsoop/language.py View File

@@ -776,7 +776,7 @@ def handle_custom_tags(context, text):
text = context["cs_course_handle_custom_tags"](text)

section = r"((?:chapter)|(?:(?:sub){0,2}section))"
section_star = r"<(?P<tag>%s)\*>(?P<body>.*?)</(?P=tag)\*?>" % section
section_star = r"&lt;(?P<tag>%s)\*&gt;(?P<body>.*?)&lt;/(?P=tag)\*?&gt;" % section
section_star = re.compile(section_star, re.MULTILINE | re.DOTALL | re.IGNORECASE)

tag_map = {


Loading…
Cancel
Save