diff --git a/spellcheck.rb b/spellcheck.rb index 1040a57c..b9fb4c30 100644 --- a/spellcheck.rb +++ b/spellcheck.rb @@ -23,7 +23,8 @@ def preprocess_content(content, filename, allowlist_words) content .gsub(/\[([^\]]+)\]\([^)]+\)/, '\1') # Ignore Markdown links, keeping only the text within square brackets - .gsub(/{%\s*include\s+content-reuse\/[^\n%]+\.md\s*%}/, ' ') +# .gsub(/{%\s*include\s+content-reuse\/[^\n%]+\.md\s*%}/, ' ') + .gsub(/{%\s*include\s+content-reuse\/[^\n%]+\.md(?:\s+\w+="[^"]*")*\s*%}/, ' ') # Ignore transcludes .gsub(/Gävle/, ' ') # Ignore special cases .gsub(/dæmons/i, ' ') .gsub(/([[:alnum:]]+(_|-))+[[:alnum:]]+/, ' ') # Ignore underscores and dashes