Skip to content

Commit 9e63e33

Browse files
authored
Merge pull request #40 from Code4GovTech/api_markdown_fix
added ul tags for corretly render in FE
2 parents c385f15 + 56c26e7 commit 9e63e33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

v2_utils.py

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ def remove_unmatched_tags(text):
9696
# Remove extra unmatched angle brackets
9797
cleaned_text = re.sub(r'>+', '>', cleaned_text)
9898
cleaned_text = re.sub(r'<+', '<', cleaned_text)
99+
100+
#For front end renders add ul tags
101+
if not cleaned_text.strip().startswith("<ul>"):
102+
return f"<ul>{text}</ul>"
99103

100104
return cleaned_text
101105

0 commit comments

Comments
 (0)