jonschlinkert / remarkable

Markdown parser, done right. Commonmark support, extensions, syntax plugins, high speed - all in one. Gulp and metalsmith plugins available. Used by Facebook, Docusaurus and many others! Use https://github.com/breakdance/breakdance for HTML-to-markdown conversion. Use https://github.com/jonschlinkert/markdown-toc to generate a table of contents.
https://jonschlinkert.github.io/remarkable/demo/
MIT License
5.74k stars 371 forks source link

Allowing custom target per link #291

Open lpellegr opened 6 years ago

lpellegr commented 6 years ago

Kramdown supports custom target per link with their extensions syntax:

[link](url){:target="_blank"}

It would be really handy to have similar built-in support with remarkable.

Here are some references:

lpellegr commented 6 years ago

A workaround is to enable HTML tags in the source but it does not fit all use cases.

doowb commented 6 years ago

Thanks for the issue. I'll look into this some more to see if it should be supported directly in remarkable or if it should be a plugin (there might already be one out there). If this is added or if a plugin is built, then I think #292 and #293 should be handed using this syntax and we can add documentation around the security problem that you brought up in those issues.

luckydonald commented 6 years ago

https://www.npmjs.com/package/remarkable-extlink might be helpful