Ghost/core/server/apps/default-cards
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
..
atoms
cards 🐝 Allow unbalanced HTML in markdown card. (#8320) 2017-05-23 16:15:32 +02:00
tests 🐝 Allow unbalanced HTML in markdown card. (#8320) 2017-05-23 16:15:32 +02:00
index.js