The user Infinite_Flight_Sims reported that hyperlinks were not rendering properly in a specific topic on their Discourse installation, showing raw markdown instead of clickable links. codinghorror sought clarification, and Infinite_Flight_Sims explained that the issue occurred when using the hyperlink insert button within the topic. supermathie identified that the problem was due to markdown being placed inside a <div> HTML block, which prevents rendering. supermathie advised removing the <div> tags, which resolved the issue. codinghorror confirmed that markdown does not work within HTML blocks, referencing a Stack Overflow post, while supermathie added that blank lines can trigger markdown parsing within blocks if necessary.
I recently installed Discourse (hosting with Digital Ocean) and we’ve encountered a problem: hyper links are not working
Now me and the staff team is quite confused, as hyperlinks are working with all posts/topics, other from one. So I’m wondering, why is this only happening to one topic?
Basically, hyperlinks are not working on one specific topic. We’ve removed them from this topic as they don’t work, but on this topic, hyperlinks would show up like this:
Sorry, I don’t understand. So links placed in the topic do not work (any links? I’m not following), or links to that topic don’t work from other places?
Or are you saying markdown does not work in a topic somehow? I am super confused
Sorry for the confusion. I’ll try to refrase it. When you go to this topic that is having issues and press the hyperlink insert button and fill out the url and text, it does not show up as a link when I hit save edit. Instead of getting a link like this, you end up with this:
Additonally (info pulled from the link) if you need to use a div or other block element, since we use CommonMark you can use blank lines to trigger Markdown parsing as follows:
<div>a div link to [DDG](https://duckduckgo.com)</div>
a link to [DDG](https://duckduckgo.com)
<div>
a div link with blank lines to [DDG](https://duckduckgo.com)
</div>