A plugin for Inkdrop to allow to create tag badges.
ipm install tag-badge
Syntax | Result |
---|---|
[[Default]] | |
[[s:Success]] | |
[[e:Error]] | |
[[w:Warning]] | |
[[i:Info]] |
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.
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. |