Skip to content

Commit 69ea45e

Browse files
authored
Update Autolinker.js
1 parent 4601795 commit 69ea45e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Autolinker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ Autolinker.prototype = {
610610
var node = htmlNodes[ i ],
611611
nodeType = node.getType();
612612

613-
if( nodeType === 'element' && node.getTagName() === 'a' ) { // Process HTML anchor element nodes in the input `textOrHtml` to find out when we're within an <a> tag
613+
if( nodeType === 'element' && (node.getTagName() === 'a' || node.getTagName() === 'style') ) { // Process HTML anchor element nodes in the input `textOrHtml` to find out when we're within an <a> tag
614614
if( !node.isClosing() ) { // it's the start <a> tag
615615
anchorTagStackCount++;
616616
} else { // it's the end </a> tag

0 commit comments

Comments
 (0)