🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

@humanwhocodes/markdown-it-markua-aside

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@humanwhocodes/markdown-it-markua-aside

Markua-style asides and blurbs for markdown-it

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Markua Aside Plugin for markdown-it

by Nicholas C. Zakas

If you find this useful, please consider supporting my work with a donation.

Description

A markdown-it plugin to support Markua-style asides and blurbs, such as:

{aside}Something said to the side.{/aside}

{blurb}Something else you should know.{/blurb}

{blurb, class: warning}
Don't do this!
{/blurb}

A> Something said to the site.

B> Something else you should know.

Prerequisites

  • Node.js 12.22+

Usage

Install using npm or yarn:

npm install @humanwhocodes/markdown-it-markua-aside --save

# or

yarn add @humanwhocodes/markdown-it-markua-aside

Import into your project:

// CommonJS
const { asidePlugin } = require("@humanwhocodes/markdown-it-markua-aside");

// ESM
import { asidePlugin } from "@humanwhocodes/markdown-it-markua-aside";

API

After importing, create a new instance of DataExtractor. The constructor expects one object argument that defines the data schema.

For example:

import MarkdownIt from "markdown-it";
import { asidePlugin } from "@humanwhocodes/markdown-it-markua-aside";

// create a new instance
const md = new MarkdownIt();

// install the plugin
md.use(asidePlugin);

// render your text
const result = md.render("{aside}Hello world!{/aside}");

Developer Setup

  • Fork the repository
  • Clone your fork
  • Run npm install to setup dependencies
  • Run npm test to run tests

License

Apache 2.0

Keywords

markdown-it-plugin

FAQs

Package last updated on 04 Apr 2022

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