dependabot[bot]
2024-05-13 535af55ec8fca7e9138250c6cf33204c8469e613
quartz/plugins/transformers/ofm.ts
@@ -188,7 +188,8 @@
            const [raw]: (string | undefined)[] = capture
            let escaped = raw ?? ""
            escaped = escaped.replace("#", "\\#")
            escaped = escaped.replace("|", "\\|")
            // escape pipe characters if they are not already escaped
            escaped = escaped.replace(/((^|[^\\])(\\\\)*)\|/g, "$1\\|")
            return escaped
          })