Releases: arve0/markdown-it-attrs
Releases · arve0/markdown-it-attrs
v3.0.0
Support for markdown-it 9.0, issue #90
v2.4.0
Added allowedAttributes
option, thanks @Connum
v2.3.4
Resolve npm search issue.
v2.3.3
Upgraded babel for browser build.
v2.3.2
Fixed a bug that rendered
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
Allow = in attribute values, issue #70.
v2.3.0
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
Added support for horizontal lines, see #67.
v2.1.0
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