Releases: samwilson/commonmark-shortcodes
Releases · samwilson/commonmark-shortcodes
0.5.1
- Fix bug with shortcodes that have matching prefixes.
0.5.0
- Revert the switch to
ShortcodeInline
/ShortcodeBlock
because it's much easier if the callbacks don't have to know what sort
of node they're receiving. This release restores the previous behaviour of just providing a Shortcode
object to both block and inline
nodes.
0.4.0
- Split
Shortcode
into ShortcodeInline
and ShortcodeBlock
, and require the relevant one to be used in the shortcode callback.
- Improve documentation in README.md.
0.3.1
- Allow trailing spaces after the closing braces of a one-line block shortcode.
0.3.0
- Switch to pipe-separated attributes. The HTML-style is too limiting in what's allowed in attribute names, and makes unnamed attributes too messy.
0.2.1
- Fix parsing of inline shortcodes.
0.2.0
- Allow block shortcodes to terminate on the same line, e.g.
{{{pagebreak p=7}}}
(with or without attributes).