mirror of
https://github.com/JonasunderscoreJones/turbo-octo-potato.git
synced 2025-10-28 19:49:19 +01:00
Fixed italic links
- Fixed italic comeback title links to be parsed properly
This commit is contained in:
parent
7d5a9b2481
commit
c80de83eed
1 changed files with 5 additions and 2 deletions
|
|
@ -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 = []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue