Skip to content

Releases: arve0/markdown-it-attrs

v2.3.0

07 Jul 12:34
Compare
Choose a tag to compare

Support curlies with length above 1, for example:

const md = require('markdown-it')();
const markdownItAttrs = require('markdown-it-attrs');

md.use(markdownItAttrs, {
  leftDelimiter: '{{',
  rightDelimiter: '}}'
});

let src = 'asdf *asd*{{.c}}';
let res = md.render(src);
console.log(res);  // <p>asdf <em class="c">asd</em></p>

v2.2.0

09 Jun 19:09
Compare
Choose a tag to compare

Added support for horizontal lines, see #67.

v2.1.0

20 May 12:04
Compare
Choose a tag to compare

Custom delimiters added by @hipstersmoothie in PR #64.

You can now configure delimiters like this:

md.use(attrs, {
  leftDelimiter: '[',
  rightDelimiter: ']'
})

with the following markdown syntax:

# header with [.class #id and=attrs]
paragraph

v2.0.0

06 May 06:45
Compare
Choose a tag to compare

Allows one char empty attributes, like paragraph {a}<p a="">paragraph</p>, see issue #58.

v1.2.1

07 Jan 12:38
Compare
Choose a tag to compare

Fixed two bugs, #50 and #52, allowing `code with{.curly}` and multiple curlies behind `code`{.a} and ![](images.png){.b} in same paragraph.

v1.2.0

15 Sep 15:13
Compare
Choose a tag to compare

Add support for css-modules: ..green -> css-module="green". See #48.

v1.1.1

15 Sep 15:04
Compare
Choose a tag to compare

Fixed bug introduced in v1.0.0 for <figure> when using with implicit figures, see arve0/markdown-it-implicit-figures#18

v1.1.0

27 Aug 08:37
Compare
Choose a tag to compare
  • Fix ![](images.png){.class}, bug introduced in rewrite (v1.0.0), issue #46

v1.0.1

20 Aug 12:22
Compare
Choose a tag to compare
  • browser build in es5, transform with babel es2015

v1.0.0

07 Aug 22:33
Compare
Choose a tag to compare

Complete rewrite.

Fixes: