Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected output when rendering emails #50

Open
camopy opened this issue Jul 3, 2022 · 1 comment
Open

Unexpected output when rendering emails #50

camopy opened this issue Jul 3, 2022 · 1 comment

Comments

@camopy
Copy link

camopy commented Jul 3, 2022

This is the input for the source content:

[email protected]

This is the output:

[email@email.com](mailto:email@email.com)

@0E9B061F
Copy link
Contributor

This is caused by marked's mangle option (or rather by svelte-markdown not handling it properly). As a workaround you can disable mangling:

<SvelteMarkdown options={{mangle: false}}/>

I think you could also replace the link renderer with one that inserts the mangled values as HTML (like {@html varName}). Grain of salt though, I didn't test this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants