HTML a tag not rendered correcly
See original GitHub issueGiven this JS
import { href } from "cities"
const source = `Go <a href="${href}">here</a>`
<Markdown source={source}/>
The output is not a link but a span with the links “here” only.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
html tags surrounded with " " not rendering - Stack Overflow
If it's coming from a server and you are adding it to the DOM with javascript, you'll want to set innerHTML as it...
Read more >[Bug] Not rendering properly · Issue #456 - GitHub
Bug Report. HTML is not being rendered properly. ... This is actually a bug: a unsupported tag should not break the inline context....
Read more >My custom HTML code doesn't render correctly on Gmail
My problem is: After creating a new email with “Code Mode”, editing the HTML, and saving the email, Mautic (or probably GrapesJS) refactor...
Read more >HTML email is not rendering correctly in Outlook
However, randomly in the email the HTML code was not rendered correctly; like </span> or &nb sp randomly appear along the lines.
Read more >How can I prevent HTML tags getting rendered as plain text?
First you can mark your field as "raw" and the html would render correctly. {{ your_field | raw }} should render ok.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@sonaye You can use the
renderers
option like this:And an example of the markdownLinkRenderer function (I use it to add target=“_blank” to non relative links):
Appears to work if you take:
and make it
Not sure if this works for your context or not, hope it helps.