Closed rsp4jack closed 2 years ago
Example:
{
type: 'lang',
regex: /(?:^|\n)\\\[(.*)\n([\s\S]*?)\n\\\]/g,
replace: function (match, leadingSlash, codeblock) {
return match;
}
},
I hope that the text matching this regular expression will not be parsed, but directly use the return value (HTML) of this function (in any case).
I'm writing a Showdown extension to add Mathjax support. But Mathjax can't process LaTeX commands, because Showdown will process some strings in LaTeX commands. I want use Showdown extension to skip processing for LaTeX commands, but need Showdown don't process extension function (like "filter" function) return.