File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,8 @@ def replace_link(match):
255255 anchor [v [1 ]] = f'{ v [0 ]} #{ v [- 1 ]} '
256256 lo_md_lines = ["# Learning Objectives\n " , '| ID | K-Level | Content |\n ' , '| --- | --- | --- |\n ' ]
257257 for lo_id , k_level , lo_content in sorted_lo :
258- lo_md_lines .append (f'| [`LO-{ lo_id } `]({ anchor .get (lo_id .split ("-" )[0 ])} ) | { k_level } | { lo_content .replace ("|" , "\\ |" )} |{ line_break } ' )
258+ escaped_lo_content = lo_content .replace ("|" , "\\ |" )
259+ lo_md_lines .append (f'| [`LO-{ lo_id } `]({ anchor .get (lo_id .split ("-" )[0 ])} ) | { k_level } | { escaped_lo_content } |{ line_break } ' )
259260 lo_md_content = "" .join (lo_md_lines )
260261 if write_if_changed (learning_objectives_path , lo_md_content , label = rel_label (learning_objectives_path )):
261262 modified_paths .add (learning_objectives_path .resolve ())
You can’t perform that action at this time.
0 commit comments