Skip to content

Commit 7a5ac8d

Browse files
committed
update handling of brackets. fixes #89
1 parent 2eb4597 commit 7a5ac8d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/problem_bank_scripts/problem_bank_scripts.py

+4
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,10 @@ def process_question_pl(source_filepath, output_path=None, dev=False):
12711271
# Fix Latex underscore bug (_ being replaced with \_)
12721272
question_html = question_html.replace("\\_", "_")
12731273

1274+
# Fix Latex bracket bug ([ and ] replaced with \[ and \])
1275+
# See https://github.com/open-resources/problem_bank_scripts/issues/89
1276+
question_html = question_html.replace("\\[","[").replace("\\]","]")
1277+
12741278
# Fix empty <markdown> block
12751279
# See this issue: https://github.com/PrairieLearn/PrairieLearn/issues/8346
12761280
# TODO: this can be removed once issue 8346 is resolved

0 commit comments

Comments
 (0)