Skip to content

Commit

Permalink
amend comment
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Alvarez <[email protected]>
  • Loading branch information
r3770 and cead22 committed Oct 31, 2023
1 parent c3d6279 commit a652de4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ExpensiMark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('<pre>') || match[1].includes('</h1>')) {
replacedText = replacedText.concat(textToCheck.substr(match.index, (match[0].length)));
} else if (shouldApplyAutoLinkAgain) {
Expand Down

0 comments on commit a652de4

Please sign in to comment.