From dbb91e0d2b4ec77d901cb4338a906083eedd3f34 Mon Sep 17 00:00:00 2001 From: Rust1667 <115593284+Rust1667@users.noreply.github.com> Date: Wed, 31 May 2023 10:21:19 +0200 Subject: [PATCH] fix formatting with the new beginners guide on pages.dev --- .github/replace-links-to-fmhy-in-files-in-current-dir.py | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/replace-links-to-fmhy-in-files-in-current-dir.py b/.github/replace-links-to-fmhy-in-files-in-current-dir.py index 4ac3a187c..10bd81d1b 100644 --- a/.github/replace-links-to-fmhy-in-files-in-current-dir.py +++ b/.github/replace-links-to-fmhy-in-files-in-current-dir.py @@ -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)