1. markdown-it-source-map
Add source map to the output HTML of markdown-it.
markdown-it-source-map
Package: markdown-it-source-map
Created by: tylingsoft
Last modified: Sun, 19 Jun 2022 16:09:28 GMT
Version: 0.1.1
License: MIT
Downloads: 12,468
Repository: https://github.com/tylingsoft/markdown-it-source-map

Install

npm install markdown-it-source-map
yarn add markdown-it-source-map

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin