Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@worktile/tiny-marked

Package Overview
Dependencies
Maintainers
5
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@worktile/tiny-marked

> tiny marked parser.

Source
npmnpm
Version
0.0.10
Version published
Maintainers
5
Created
Source

wt-tiny-marked

tiny marked parser.

Installation

npm i @worktile/tiny-marked --save

Usage

import { TinyMarked } from "@worktile/tiny-marked";

const source = `Hello [@d007d3f455d846098c96b51d22eac16c|Peter Xu], how are you?\n> This is blockquote`;
const html = TinyMarked.toHTML(source);
const text = TinyMarked.toPlainText(source)

Rules

Mention [@{uid}|{name}]

[@d007d3f455d846098c96b51d22eac16c|Peter Xu] => @Peter Xu

Number-sign [#{type}-{id}|{identifer}|{name}]

[#epic-d007d3f455d846098c96b51d22eac16c|AGL-100|Work item1] => AGL-100

Color #ddd

#ddd => #ddd

Blockquote >

> hello => <blockquote>hello</blockquote>

Release & Publish

  • release by one of the following commands that contains bump version, generate changelog and add tag for release version.
     npm run release-patch
     npm run release-minor
     npm run release-major
    
  • publish by npm run pub which contain build, published to npm

FAQs

Package last updated on 15 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts