This plagen parses markdown and replaces _
to HTML-tag span
.
from
this test is _underline_
to
this test is <span class="md-it-underline">underline</span>
With Yarn:
yarn add -D @comtext/markdown-it-underline
With npm
npm i @comtext/markdown-it-underline
const md = require("markdown-it")();
const mk = require("@comtext/markdown-it-underline");
md.use(mk);
var result = md.render("this test is _underline_");