diff --git a/lib/ExpensiMark.js b/lib/ExpensiMark.js index ba6eac54..cbcb8838 100644 --- a/lib/ExpensiMark.js +++ b/lib/ExpensiMark.js @@ -515,7 +515,7 @@ export default class ExpensiMark { } // We don't want to apply link rule if match[1] contains the code block inside the [] of the markdown e.g. [```example```](https://example.com) - // , Or match[1] is the multiline alias text which the header markdown precedes to. e.g. # [example\nexample\nexample](https://example.com) + // or if match[1] is multiline text preceeded by markdown heading, e.g., # [example\nexample\nexample](https://example.com) if (isDoneMatching || match[1].includes('
') || match[1].includes('')) {
                 replacedText = replacedText.concat(textToCheck.substr(match.index, (match[0].length)));
             } else if (shouldApplyAutoLinkAgain) {