diff --git a/demo.js b/demo.js index 3edc769..24b39aa 100644 --- a/demo.js +++ b/demo.js @@ -7,6 +7,4 @@ md.use(markdownItAttrs); var src = '# header {.style-me}\n'; src += 'paragraph {data-toggle=modal}'; -var res = md.render(src); - -console.log(res); // eslint-disable-line +md.render(src); diff --git a/index.js b/index.js index e4a09da..6024f19 100644 --- a/index.js +++ b/index.js @@ -139,7 +139,7 @@ module.exports = function attributes(md) { } } - md.core.ruler.before('replacements', 'curly_attributes', curlyAttrs); + md.core.ruler.before('linkify', 'curly_attributes', curlyAttrs); }; /** diff --git a/test.js b/test.js index e80cb6f..4f0c61f 100644 --- a/test.js +++ b/test.js @@ -164,7 +164,8 @@ describe('markdown-it-attrs', () => { it('should work with typography enabled', () => { src = 'text {key="val with spaces"}'; expected = '

text

\n'; - assert.equal(md.render(src), expected); + var res = md.set({ typographer: true }).render(src); + assert.equal(res, expected); }); it('should support code blocks', () => {