markdownlint-rule-github-admonition

0.0.1 • Public • Published

markdownlint-rule-github-admonition

Ensure proper GitHub admonition.

Overview

Ensure nicely rendered Warnings and Notes for your markdown files.

Installation

Use following command to install

# TODO
npm install markdownlint-rule-github-admonition --save-dev

Configuration

Rulename: github-admonition

Tags: admonition

Parameters:

  • admonitions: admonitions we should check for (string[], default [ "Note", "Warning" ])
  • admonitionStart: the usual starting string for admonition (string, default "> **")
  • admonitionEnd: the usual ending string for admonition (string, default "**")

Faulty:

> **NOTE:** this will be detected{github-admonition}

> **NOTE:**{github-admonition}
this will be detected

> **NOTE:**{github-admonition}
> this will be detected

**NOTE:** this will be detected{github-admonition}

**NOTE** this will be detected{github-admonition}

> **NOTE** this will be detected{github-admonition}

( **NOTE:** this will be detected){github-admonition}

(**NOTE:** this will be detected){github-admonition}

Correct:

> **Note** this is the correct syntax

> **Note**
> this is the correct syntax

rendered comparison

NOTE this will be detected{github-admonition}

NOTE this will be detected{github-admonition}

NOTE this will be detected{github-admonition}

( NOTE: this will be detected){github-admonition}

Note this is the correct syntax

Usage

For usage with certain tools, please refer to the documentation of markdownlint, markdownlint-cli or the tool you are planning to use.

Package Sidebar

Install

npm i markdownlint-rule-github-admonition

Weekly Downloads

6

Version

0.0.1

License

MIT

Unpacked Size

21.3 kB

Total Files

7

Last publish

Collaborators

  • aepfli