How to use the TextRenderer function from marked
Find comprehensive JavaScript marked.TextRenderer code examples handpicked from public code repositorys.
54 55 56 57 58 59 60 61 62 63
PdfParser.prototype.parse = function (src) { this.inline = new marked.InlineLexer(src.links, this.options); // use an InlineLexer with a TextRenderer to extract pure text this.inlineText = new marked.InlineLexer( src.links, merge({}, this.options, { renderer: new marked.TextRenderer() }) ); this.tokens = src.reverse(); while (this.next()) {
0
0
0
+ 3 other calls in file
marked.parse is the most popular function in marked (90 examples)