There is a bug in the markdown parser that does not hyperlink links from within an inline code block.
Code:
`[DOM Standard](https://dom.spec.whatwg.org/)`
Real:
[DOM Standard](https://dom.spec.whatwg.org/)
There is a bug in the markdown parser that does not hyperlink links from within an inline code block.
Code:
`[DOM Standard](https://dom.spec.whatwg.org/)`
Real:
[DOM Standard](https://dom.spec.whatwg.org/)
For further actions, you may consider blocking this person and/or reporting abuse
Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.
Mike Young -
Mike Young -
Mike Young -
Mike Young -
Please leave a ❤️ or a friendly comment on this post if you found it helpful!
Top comments (9)
Hmmm never even considered this the expected behavior.
Hmmm, it seems it works if the code is put inside the hyperlink
edit: nevermind
Hmm agreed with Ben, I would think if a link is in code it's meant to show you the code and not the hyperlink.
This is the effect I was going for. The idea was that I would link a keyword to the documentation but put the keyword in an inline code block to have the monospace font.
In the ink it shows this code:
Which renders like this:
EventTarget
Which is different from what you wrote, right?
slightly, but because i realized the original way didn't properly compile to adding the
<code>
part, which dev.to does not with with the backticks inside or outside the urlHah whoops I expected that to go differently. I now know what you're talking about.
Ahh that makes sense. @nektro I think on GitHub it does what you're talking about.
prism.js supports this :)