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
let options: MarkedOptions = {isNoP: true};
Marked.setOptions(options);//is working but
Marked.parse("some intput", options)//provides to error:
TypeError: this.options.escape is not a function
Please report this to https://github.com/KostyaTretyak/marked-ts
at InlineLexer.output (http://localhost:8100/build/vendor.js:74738:56)
at Parser.parseText (http://localhost:8100/build/vendor.js:74372:33)
at Parser.tok (http://localhost:8100/build/vendor.js:74387:37)
at Parser.parse (http://localhost:8100/build/vendor.js:74345:25)
at Function.Parser.parse (http://localhost:8100/build/vendor.js:74338:23)
at Function.Marked.callParser (http://localhost:8100/build/vendor.js:50612:36)
at Function.Marked.parse (http://localhost:8100/build/vendor.js:50558:25)
at MarkedProvider.webpackJsonp.214.MarkedProvider.simpleMarked (http://localhost:8100/build/main.js:162:66)
....
The text was updated successfully, but these errors were encountered:
Agree, but I have two functions one with options second without, and have at the beginning of each call Marked.setOptions. It would be better to make possible use temporary options only for parsing..
Btw. I workarounded it, but reported this issue as bug.
The text was updated successfully, but these errors were encountered: