/ piacw.com / dev / final / node_modules / markdown-it-source-map /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]src/2 years ago -  
[DIR]test/2 years ago -  
[TXT]README.md2 years ago472 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]package.json2 years ago1.9K0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]webpack.config.js2 years ago622 0fb859dc fixed mobile overflwo options [كارل مبارك]
[   ]yarn.lock2 years ago139K0fb859dc fixed mobile overflwo options [كارل مبارك]
README.md

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
Apache/2.4.38 (Debian) Server at www.karls.computer Port 80