Skip to content

Releases: arve0/markdown-it-attrs

v3.0.0

29 Jul 13:28
Compare
Choose a tag to compare

Support for markdown-it 9.0, issue #90

v2.4.1

29 May 14:46
Compare
Choose a tag to compare

Fixes #88

v2.4.0

24 May 15:52
Compare
Choose a tag to compare

Added allowedAttributes option, thanks @Connum :octocat:

v2.3.4

01 May 07:50
Compare
Choose a tag to compare

Resolve npm search issue.

v2.3.3

01 May 07:51
Compare
Choose a tag to compare

Upgraded babel for browser build.

v2.3.2

29 Sep 15:42
Compare
Choose a tag to compare

Fixed a bug that rendered

par {.class.with.dot}

as

<p css-module="classwith.dot">par</p>

This is now fixed and renders as

<p class="class.with.dot">par</p>

See #75.

v2.3.1

10 Jul 08:39
Compare
Choose a tag to compare

Allow = in attribute values, issue #70.

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