Fixed italic links

- Fixed italic comeback title links to be parsed properly
This commit is contained in:
Jonas_Jones 2023-12-02 18:07:34 +01:00
parent 7d5a9b2481
commit c80de83eed

View file

@ -84,8 +84,11 @@ def convert_monthly_content_to_json(content, year, month):
# clear the text from any leading spaces # clear the text from any leading spaces
while parts[3].startswith(" "): while parts[3].startswith(" "):
parts[3] = parts[3][1:] parts[3] = parts[3][1:]
if (parts[3].startswith("[") and parts[3].endswith(")")) or (parts[3].startswith("*[") and parts[3].endswith(")*")): if (parts[3].startswith("[") and parts[3].endswith(")")):
parts[3] = parts[3][1:parts[3].find("]")] parts[3] = parts[3][1:parts[3].find("](")]
if (parts[3].startswith("*[") and parts[3].endswith(")*")):
parts[3] = parts[3][2:parts[3].find("](")]
releasetype = [] releasetype = []