You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

remark-mark-plus

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-mark-plus

This plugin parses ==custom Markdown syntax== to the HTML `<mark>` element. It adds a new node type to the [mdast](https://github.com/syntax-tree/mdast/blob/master/readme.md) produced by [remark](https://github.com/remarkjs/remark): `mark` and stringifies


Version published
Maintainers
1
Created

Readme

Source

remark-mark-plus

This plugin parses ==custom Markdown syntax== to the HTML <mark> element. It adds a new node type to the mdast produced by remark: mark

If you are using rehype, the stringified HTML result will be <mark>.

Syntax

Click ==File > Open== to open the file.

AST (see mdast specification)

Mark (Parent) represents a reference to a user.

interface Mark <: Parent {
  type: "mark";
}

For example, the following markdown:

==File > Open==

Yields:

{
  type: 'mark',
  children: [{
    type: 'text',
    value: 'File > Open'
  }]
}

Rehype

This plugin is compatible with rehype. Mark mdast nodes will become <mark>contents</mark>.

Installation

npm:

npm install remark-mark-plus

Usage

Dependencies:

const unified = require('unified')
const remarkParse = require('remark-parse')
const stringify = require('rehype-stringify')
const remark2rehype = require('remark-rehype')

const remarkMark = require('remark-mark-plus')

Usage:

unified()
  .use(remarkParse)
  .use(remarkMark)
  .use(remark2rehype)
  .use(stringify)

License

MIT © [Zeste de Savoir][zds]

Keywords

FAQs

Package last updated on 23 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc