How to use the TextRenderer function from marked

Find comprehensive JavaScript marked.TextRenderer code examples handpicked from public code repositorys.

-2
fork icon1
star icon0
watch icon0

+ 3 other calls in file

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()) {
fork icon0
star icon0
watch icon0

+ 3 other calls in file