md2pango: better comment filter

This commit is contained in:
end-4
2024-10-21 08:08:50 +02:00
committed by GitHub
parent 115c21fc95
commit 841de6536a
+1 -1
View File
@@ -10,7 +10,7 @@ const replacements = {
{ name: 'NUMBERING', re: /^(\s*[0-9]+\.\s)(.*)(\s*)$/, sub: ' $1 $2' },
],
'escapes': [
{ name: 'COMMENT', re: /<!--.*-->/, sub: '' },
{ name: 'COMMENT', re: /<!--[\s\S]*?-->/, sub: '' },
{ name: 'AMPERSTAND', re: /&/g, sub: '&amp;' },
{ name: 'LESSTHAN', re: /</g, sub: '&lt;' },
{ name: 'GREATERTHAN', re: />/g, sub: '&gt;' },