markdown-it-codeblock-type

0.0.1 • Public • Published

Markdown-it Codeblock Type

Flag the type of codeblock for conversion between markdown and html. Sometimes markdown-it will place the attribute on <code> and sometimes it will place it on <pre> that's the behavior of markdown-it.

Usage

import CodeblockType from "markdown-it-codeblock-type"
import MarkdownIt from "markdown-it"
 
// --
 
renderer = new MarkdownIt()
renderer.use(
  CodeblockType
)

Readme

Keywords

none

Package Sidebar

Install

npm i markdown-it-codeblock-type

Weekly Downloads

14

Version

0.0.1

License

LicenseRef-license.txt

Last publish

Collaborators

  • jpatters
  • envygeeks