Skip to content

Correct formatting errors #119

@oldenbourglaura

Description

@oldenbourglaura

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

Additional information

(This problem only occurs in Gatsby files, but the fix should't affect the Wordpress files.)

Metadata

Metadata

Assignees

Type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions