1.0.0 • Published 5 years ago
markdown-it-to-text v1.0.0
markdown-it-to-text
Adapted from https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.js
Does all the logic the renderer does except for the part where it prints the tags!
Usage
takes the result of .parse()
from markdown-it:
const md = require('markdown-it')();
let tokens = md.parse(source);
renderAsText(tokens);
1.0.0
5 years ago