markdown-it-source-map

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
markdown-it-source-map
1400.1.16 years ago6 years agoMinified + gzip package size for markdown-it-source-map in KB

Readme

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