mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
fix: raw block not ignoring {% characters, fixes #263
This commit is contained in:
@@ -36,4 +36,10 @@ describe('Issues', function () {
|
||||
// should stringify the regexp rather than execute it
|
||||
expect(html).to.equal(INPUT)
|
||||
})
|
||||
it('#263 raw/endraw block not ignoring {% characters', () => {
|
||||
const template = `{% raw %}This is a code snippet showing how {% breaks the raw block.{% endraw %}`
|
||||
const engine = new Liquid()
|
||||
const html = engine.parseAndRenderSync(template)
|
||||
expect(html).to.equal('This is a code snippet showing how {% breaks the raw block.')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user