8000 Support disable validateLink in cli mode by xqin · Pull Request #1084 · markdown-it/markdown-it · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@xqin
Copy link
@xqin xqin commented Dec 31, 2024

add --no-validate-link parameter to disable the validateLink in cli mode.

Fixes #1083

test.md

[hello]( <javascript:alert(1)> )
./bin/markdown-it.mjs test.md
<p>[hello]( &lt;javascript:alert(1)&gt; )</p

./bin/markdown-it.mjs --no-validate-link test.md
<p><a href="javascript:alert(1)">hello</a></p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support disable validateLink in cli mode

1 participant

0