Skip to content

2.0.0

Compare
Choose a tag to compare
@Bioruebe Bioruebe released this 20 Jun 12:18
· 24 commits to master since this release
  • 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]()