mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
fix formatting with the new beginners guide on pages.dev
This commit is contained in:
parent
ea1c235cd6
commit
dbb91e0d2b
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ def replaces_for_beginners_guide(text):
|
|||
text = re.sub('\[TOC\]\n', '', text, flags=re.MULTILINE)
|
||||
text = re.sub('## -> Beginners Guide to Piracy <-\n', '', text, flags=re.MULTILINE)
|
||||
text = re.sub(r"!!!note\s(.+?)\n", r"!!!\n\1\n!!!\n", text, flags=re.MULTILINE)
|
||||
text = re.sub(r"!!!info\s(.+?)\n", r"!!!\n\1\n!!!\n", text, flags=re.MULTILINE)
|
||||
text = re.sub(r"!!!warning\s(.+?)\n", r"!!!warning\n\1\n!!!\n", text, flags=re.MULTILINE)
|
||||
text = re.sub('\*\*\[\^ Back to Top\]\(https://rentry.org/Piracy-BG\)\*\*', '', text, flags=re.MULTILINE)
|
||||
text = re.sub("!!!\n!!!\n", "!!!\n", text, flags=re.MULTILINE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue