You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Im trying to add a new inlineRegexps. I want to bold the @text like text
to archive that Im doing this:
const inlineRegexps = {
context: /^@(?=\S)([\S]*?\S)+/,
strong: /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,
em: /^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,
inlineCode: /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,
link: /^!?\[([\s\S]+)\]\(\s*([\s\S]+)(?:\s+([\s\S]+))?\s*\)/,
// order matters. text should be last for correct parsed
text: /^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,
};
Hi! Redefining inline or block regExps is not part of external API. But if you try to rewrite internal code for handling @test block and making it bold your version is definitely should work! It should be something like:
Hi Im trying to add a new inlineRegexps. I want to bold the @text like text
to archive that Im doing this:
adding context to the inlineRegexps and
to the defaultRenderers.
What I am doing wrong?
I think I dont fully understand the regexpresions.
Thanks
I really like your yace and mdhl :D
The text was updated successfully, but these errors were encountered: