Skip to content

Releases: Bioruebe/markdown-it-label

2.0.2

21 Apr 09:34
Compare
Choose a tag to compare
  • Fixed typescript types

2.0.1

24 Mar 13:34
Compare
Choose a tag to compare
  • Added back CommonJS support

2.0.0

20 Jun 12:18
Compare
Choose a tag to compare
  • Added typescript support
  • Added shorthand syntax

The new shorthand syntax allows authors skip the color definition of the labels. After the color has been set once (anywhere in the document), it will automatically be applied to all other labels.

In previous versions of the plugin, the color had to be defined at the top of the document to be applied to following labels. This means this is a breaking change as it changes the behavior slightly.

Example

## Define label color anywhere in the document
#[important](yellow)

## Use shorthand without the color argument
#[important]()

## You can override the color on a per-label basis
** This label is red **
#[important](red)

** All others are yellow **
#[important]()

1.0.0

09 Apr 03:07
d008666
Compare
Choose a tag to compare

Initial release