パッケージの詳細

markdown-it-ib

valtlai59ISC2.0.0

Use and along with and with Markdown syntax

em, strong, i, b

readme

markdown-it-ib

NPM

A markdown-it plugin to use * for <i> and ** for <b> in your Markdown documents, along with the conventional _ for <em> and __ for <strong>.

Example input:

*A* **B** _C_ __D__

Output:

<p><i>A</i> <b>B</b> <em>C</em> <strong>D</strong></p>

Install

npm install markdown-it-ib

Usage

import markdownIt from 'markdown-it';
import markdownItIB from 'markdown-it-ib';
// OR
const markdownIt = require('markdown-it');
const markdownItIB = require('markdown-it-ib');

const md = markdownIt()
    .use(markdownItIB);

const output = md.render('*A* **B** _C_ __D__');
console.log(output);

See also

更新履歴

Changelog

This project uses semantic versioning.

v2.0.0 (2023-11-01)

  • BREAKING: Dropped support for Node.js 12, 14, and 16–17, so Node.js 18 or greater is now supported.
  • Removed the ESM exports. All Node.js versions support CommonJS, so this should not matter.
  • A dedicated Deno version is discontinued. Please import npm:markdown-it-ib@VERSION instead.

1.0.2 (2022-10-30)

  • Changed the license from MIT to ISC

1.0.1 (2021-05-31)

  • Updated readme

1.0.0 (2021-05-25)

  • Initial release