Skip to content

tylingsoft/markdown-it-source-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published