mark-mini

1.0.0 • Public • Published
mark-mini
Inline Markdown Parser

Introduction

This is just a convenience package for markdown-it's renderInline(). This is created for using a limited subset of the Markdown syntax for use in comments, contact fields, etc.

Installation

npm install --save mark-mini

Usage

import mark from 'mark-mini'
 
const html = mark("Hey I'm a [`linked inline code block`](https://nelo.is)!")
// Hey I’m a <a href="https://nelo.is"><code>linked inline code block</code></a>!

Rules enabled

  • _italic_
  • **strong**
  • `code`
  • ~~strikethrough~~
  • [links](#links) with auto-linking

Customizing markdown-it to accommodate your own rules should be easy. 😉

Package Sidebar

Install

npm i mark-mini

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.54 kB

Total Files

4

Last publish

Collaborators

  • nelonoel