diff --git a/qsgen2 b/qsgen2 index ce7912a..7733d12 100755 --- a/qsgen2 +++ b/qsgen2 @@ -805,10 +805,10 @@ _html() { # Define the Python code for parsing and replacing specific QStags local python_code=$(cat <", "#EH1": "", @@ -875,10 +875,10 @@ def replace_qstags(match): "#EH5": "", "#EH6": "", } - return qstag_dict.get(qstag, qstag) # Replace or return unchanged # Define the regular expression pattern for QStags, excluding specific ones pattern = r'(?<=\s)(#(?!link|image|ytvideo|updated|version)\w+)' + # Replace QStags using the defined function result = re.sub(pattern, replace_qstags, '''$content''', flags=re.MULTILINE)