Closed bb010g closed 1 year ago
Thanks! Hmm, but it looks to introduce too many variations for me. It will make the list of available placeholders too long. Instead I think that introducing functional placeholder like %MD_SAFE(%TITLE%)%
is better.
Sure, I'd be willing to give that a try.
Now I'm writing the parser. I'll comment here after I completely rewrite current features with the new parser, then please create a pull request to support the suggested purpose!
OK, I've done it. Now a new placeholder %HTML_SAFE(...)%
(and a shorthand %HTML(...)%
) is available. You'll just need to add codes similar to https://github.com/piroor/copy-selected-tabs-to-clipboard/blob/trunk/common/commands.js#L377 .
Finally I've added %MD_SAFE()%
and %MD_LINK_TEXT_SAFE()%
based on this PR. Thanks a lot!
These ensure the Markdown source code is properly escaped.
CommonMark compliant.
(I wrote this patch a while back, but just got around to submitting it. I apologize for the delay.)