Skip to content

Commit

Permalink
Resolves #1618, preserve the markup if it's the last element
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Mar 14, 2019
1 parent f2d8e1c commit a3c8300
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/plugins/keep-markup/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,11 @@ describe('Prism Keep Markup Plugin', function () {
})
// The markup is removed if it's the last element and the element's name is a single letter: a(nchor), b(old), i(talic)...
// https://github.com/PrismJS/prism/issues/1618
/*
it('should keep last single letter empty markup', function () {
const result = execute(`<code class="language-javascript">xy<a></a></code>`)
expect(result.start.length).to.equal(1)
expect(result.end.length).to.equal(1)
expect(result.nodes.length).to.equal(1)
expect(result.nodes[0].nodeName).to.equal('A')
})
*/
})

0 comments on commit a3c8300

Please sign in to comment.