Ghost/core/server/apps/default-cards/tests
Ryan McCarvill 957f51e677 🐝 Allow unbalanced HTML in markdown card. (#8320)
no issue

The simpledom interpreter that the Mobiledoc DOM renderer uses does not allow for unbalanced or incorrect HTML such as that which is entered by a user.

This PR adds a step where the HTML is sanitised and balanced before being passed to simpledom.

- use latest jsdom (+pin version), update yarn.lock, add comments
- don't use node-4 incompatible shorthand method definition
- grab <body> content rather than document content
- update markdown card specs to match markdown-it behaviour
- revert to jsdom 9.12.0 for node 4.x support, close window to free memory
- moved 3rd party libs into render function
2017-05-23 16:15:32 +02:00
..
hr_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
html_spec.js 📦 Card-Rename (#8218) 2017-03-24 10:03:33 +00:00
image_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00
markdown_spec.js 🐝 Allow unbalanced HTML in markdown card. (#8320) 2017-05-23 16:15:32 +02:00
soft-return_spec.js 💄 🐷 Test consistency (#8199) 2017-03-21 09:24:11 +01:00