From 46463b80ff3e4115a7cdc9fb46356d143bb8bfd6 Mon Sep 17 00:00:00 2001 From: Peter Harrison Date: Fri, 2 Feb 2024 12:56:01 -0800 Subject: [PATCH] Fixes #1559 --- .github/workflows/md_to_mpx.py | 86 ---------------------------------- 1 file changed, 86 deletions(-) delete mode 100644 .github/workflows/md_to_mpx.py diff --git a/.github/workflows/md_to_mpx.py b/.github/workflows/md_to_mpx.py deleted file mode 100644 index e64c48bbf8..0000000000 --- a/.github/workflows/md_to_mpx.py +++ /dev/null @@ -1,86 +0,0 @@ -""" -Script to make Markdown files MPX compatible. -This script scans Markdown files and escapes special characters (<, >, {, }) -to make them compatible with the MPX standard used in Docusaurus v3. -This script complies with: - 1) Pylint - 2) Pydocstyle - 3) Pycodestyle - 4) Flake8 -""" - -import os -import argparse -import re - -def escape_mpx_characters(text): - """ - Escape special characters in a text string for MPX compatibility. - Avoids escaping already escaped characters. - Args: - text: A string containing the text to be processed. - Returns: - A string with special characters (<, >, {, }) escaped, avoiding - double escaping. - """ - # Regular expressions to find unescaped special characters - patterns = { - "<": r"(?": r"(?", - "{": r"(?