Ghost/core/test/unit
Kevin Ansfield 4f9e687f62 Updated mobiledoc renderer to insert begin/end HTML comments around cards
no issue

We're creating tooling to convert HTML to Ghost flavoured mobiledoc, however we have cards that allow arbitrary content without a wrapper element which means that we're unable to do a 1:1 mapping of mobiledoc->html->mobiledoc. To work around this problem we now output HTML comments before/after the output of each card so that our converter can extract card content correctly when parsing HTML.

- added `createCard` method which wraps a card's `render()` method to add begin/end comments and updated all cards to use it
- only takes affect for newly added or re-saved posts/pages
2019-02-25 18:05:01 +07:00
..
adapters Removed unit tests who use the database (#10407) 2019-01-22 13:36:30 +01:00
api Added support for short format when attaching authors/tags in Admin API v2 (#10505) 2019-02-22 13:01:04 +01:00
apps Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00
config Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
data Added migration to insert builtin Zapier integration (#10500) 2019-02-15 14:48:21 +00:00
helpers Updated messaging around {{get}} helper access 2019-02-04 17:58:35 +00:00
lib Updated mobiledoc renderer to insert begin/end HTML comments around cards 2019-02-25 18:05:01 +07:00
models Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
public Refactored Ghost SDK unit test 2018-10-05 16:49:46 +02:00
services Updated audience validation for admin api tokens (#10519) 2019-02-23 12:51:21 +01:00
web Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00
filters_spec.js Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00