mirror of
https://github.com/fmhy/edit.git
synced 2026-02-17 16:51:12 +11:00
Update replace-links-to-fmhy-in-files-in-current-dir.py
This commit is contained in:
parent
b262e2873e
commit
a0121d9429
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ import sys
|
||||||
def replaces_for_beginners_guide(text):
|
def replaces_for_beginners_guide(text):
|
||||||
text = re.sub('\[TOC\]\n', '', text, flags=re.MULTILINE)
|
text = re.sub('\[TOC\]\n', '', text, flags=re.MULTILINE)
|
||||||
text = re.sub('\*\*Table of Contents\*\*\n\[TOC2\]\n', '', text, flags=re.MULTILINE)
|
text = re.sub('\*\*Table of Contents\*\*\n\[TOC2\]\n', '', text, flags=re.MULTILINE)
|
||||||
text = re.sub('# -> ***Beginners Guide to Piracy*** <-\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"!!!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"!!!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(r"!!!warning\s(.+?)\n", r"!!!warning\n\1\n!!!\n", text, flags=re.MULTILINE)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue