Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.9 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.9 KB

inkdrop-tag-badge

A plugin for Inkdrop to allow to create tag badges.

usage example

Install

ipm install tag-badge

Usage

Syntax Result
[[Default]] Default badge
[[s:Success]] Success badge
[[e:Error]] Error badge
[[w:Warning]] Warning badge
[[i:Info]] Warning badge

Compatibility

Keep in mind that tag badge is not part of the official CommonMark or Github Flavored Markdown specification. Therefore using the [[]] syntax to create a tag badge might be ignored by other Markdown readers and as a result carry over to the rendered text.

Theming support

Theme developers can use the following CSS selectors for styling.

Selector Description
.mde-preview span.tag Default tag badge.
.mde-preview span.tag.s Success tag badge.
.mde-preview span.tag.e Error tag badge.
.mde-preview span.tag.w Warning tag badge.
.mde-preview span.tag.i Info tag badge.