Link is not converted to MarkDown
towerberlin opened this issue · comments
<a href="https://www.youtube.com/watch?v=bBxCH3QKTJA">https://www.youtube.com/watch?v=bBxCH3QKTJA</a>
echo $converter->convert('<a href="https://www.youtube.com/watch?v=bBxCH3QKTJA">https://www.youtube.com/watch?v=bBxCH3QKTJA</a>')
<https://www.youtube.com/watch?v=bBxCH3QKTJA>
Hi @towerberlin.
<https://www.youtube.com/watch?v=bBxCH3QKTJA>
is a valid URL link in Markdown. This shorthand version is called an "autolink" and is used whenever the href
and link label are the same.
See https://babelmark.github.io/?text=%3Chttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DbBxCH3QKTJA%3E for an example of how different Markdown parsers handle this input. (You'll see that virtually all of them produce the expected HTML output)
Ok and thanks for your answer