Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private getHtml: () => Promise = async () => {
const mdGuideNote = (await Translators.Xml.toNotepadFromNpx(helpNpx)).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',
filter: function(text: string) {