markdown-it-classy icon indicating copy to clipboard operation
markdown-it-classy copied to clipboard

Full support for markdown-it v5

Open m3t opened this issue 9 years ago • 0 comments

Classy doesn't work on em and strong tags with markdown-it v5

I'd like to see this plugin integrated in celsomiranda/hexo-renderer-markdown-it#27

  • $ npm list markdown-it
[email protected]
 [email protected]
  • $ npm test
    1) should work with em tags
    2) should work with strong tags                                                                                                               


  14 passing (36ms)
  2 failing

  1) markdown-it-classy should work with em tags:
     AssertionError: expected '<p><em>foo {bar}</em></p>\n' to contain '<em class="bar">foo</em>'
      at Assertion.fail (node_modules/should/lib/assertion.js:180:17)
      at Assertion.prop.value (node_modules/should/lib/assertion.js:65:17)
      at Context.<anonymous> (test/classy.js:29:37)

  2) markdown-it-classy should work with strong tags:
     AssertionError: expected '<p><strong>foo {bar}</strong></p>\n' to contain '<strong class="bar">foo</strong>'
      at Assertion.fail (node_modules/should/lib/assertion.js:180:17)
      at Assertion.prop.value (node_modules/should/lib/assertion.js:65:17)
      at Context.<anonymous> (test/classy.js:32:39)



npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0

m3t avatar Dec 13 '15 22:12 m3t