svelte-markdown
svelte-markdown copied to clipboard
How to use at `@` character?
If I try to use the at character, it renders a big string of bad characters. Any idea how to escape it?
e.g.
<SvelteMarkdown source="[email protected]" />
Renders:
[hello@mail.com](mailto:hello@mail.com)
According to this https://www.markdownguide.org/basic-syntax/#urls-and-email-addresses and this https://github.com/markedjs/marked/issues/2397 it should only be a link when wrapped with <...> but it just doesn't work. I now use backticks so it's treated as code but I'm not happy
Links work, just the @
character alone fails. See my example here https://stackblitz.com/edit/sveltejs-kit-template-default-burzvt?file=src%2Froutes%2F%2Bpage.svelte
@hugotox did you manage to get around this?
@hugotox did you manage to get around this?
Yes, kindof. The character @
as it is doesn't work, but you can use the html entity @
. Also if rendering an email address then it works fine, e.g. [[email protected]](mailto:[email protected])
Ran into the same issue. Solution is mentioned here: https://github.com/pablo-abc/svelte-markdown/issues/50
mangle: false
doesn't work for me, how does anyone manage to unescape HTML entities?