Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
Parser.parse(helpNpx, ['asciimath']);
const help: INotepad = Parser.notepad;
const mdGuide = help.sections[1].notes[0];
extension('mock', () => {
let matches: string[] = [];
return [
{
type: 'lang',
regex: /(===([^]+?)===|''([^]+?)''|;;([^]+?);;)/gi,
replace: function(s: string, match: string) {
matches.push('<Maths won\'t display in this view. See the help notepad.><br>' + match);
let n = matches.length - 1;
return '%ph' + n + 'ph%';
}
},
{
type: 'output',