You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="/#tester">normal link</a><ahref="/#you-will-never-see-this"
moz-do-not-send="true">link from moz</a>
to the html2md method, it'll produce this code
[normal link](/#tester)[link from moz]()
But if we add a space char between href and moz-specific attribute
(like this ...ee-this"\n moz-... or like this ...ee-this" \nmoz-...)
it'll produce normal link:
[normal link](/#tester)[link from moz](/#you-will-never-see-this)
Possible fix
I think that the parser you use only counts spaces as attributes separators, but instead I would recomend use ' ' | '\n', and it might be better to use \s from RegExp.
The text was updated successfully, but these errors were encountered:
The problem
If I pass this code
to the
html2md
method, it'll produce this codeBut if we add a space char between href and moz-specific attribute
(like this
...ee-this"\n moz-...
or like this...ee-this" \nmoz-...
)it'll produce normal link:
Possible fix
I think that the parser you use only counts spaces as attributes separators, but instead I would recomend use
' ' | '\n'
, and it might be better to use\s
from RegExp.The text was updated successfully, but these errors were encountered: