How to use the turpan.set function in turpan

To help you get started, we’ve selected a few turpan examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ruanyf / loppo / lib / utils.js View on Github external
function markdownRender(root, optionObj) {
  md.set({
    tocCallback(tocMarkdown, tocArray, tocHtml) {
      optionObj.toc = tocHtml;
    }
  });

  optionObj.content = md.render(optionObj.content);
  return optionObj;
}

turpan

a wrapped markdown render based on Markdown-it

MIT
Latest version published 5 months ago

Package Health Score

50 / 100
Full package analysis

Popular turpan functions