0.1.1 • Published 7 years ago

markdown-it-source-map v0.1.1

Weekly downloads
2,054
License
MIT
Repository
github
Last release
7 years ago

markdown-it-source-map

Add source map to the output HTML of markdown-it.

install

yarn add markdown-it-source-map

usage

import markdownIt from 'markdown-it'
import markdownItSourceMap from 'markdown-it-source-map'

const mdi = markdownIt()
mdi.use(markdownItSourceMap)

mdi.render('# hello world') // <h1 data-source-line="1">hello world</h1>

develop

yarn build
yarn test