-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Description
During correcting the formatting in former issues, there was an error created that I want to fix: In some places, instead of a line with bolded text we see a stray apostrophe, followed by bolded and italicised text and a missing linebreak.
These text lines should be just bold and followed by a linebreak.
Method
Regex or search&replace
Observed in Wiki
- Wrong opening tags: six apostrophes in a row:
''''''. Possible regex to detect:''''''(?=[^']) - Wrong closing tags: six apostrophes in a row:
''''''. Possible regex to detect:(?<!')''''''(?!')(?=\r?\n)
Expected in Wikitext
- Turn the opening tags
''''''(which are always followed by a character) into simple bolds''' - Turn the closing tags
''''''(which are not followed by a character) into simple bolds'''followed by a linebreak if possible
If this is too hard:
- Turn all occurences of 6 apostrophes
''''''into simple bolds'''
Example file
- From Gatsby Scrape
- https://test.kewl.org/wiki/IPCC:Wg1:Chapter:Chapter-1
- https://www.kewl.org/IPCC/Gatsby/www.ipcc.ch/report/ar6/wg1/chapter/chapter-1/index.clean.wiki
Additional information
(This problem only occurs in Gatsby files, but the fix should't affect the Wordpress files.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Type
Projects
Status
Todo