Ghost/core/test/unit/lib
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
..
common Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
fs Updated docs links to best equivalents (#10386) 2019-01-17 06:57:37 +00:00
image Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00
mobiledoc Updated mobiledoc renderer to insert begin/end HTML comments around cards 2019-02-25 18:05:01 +07:00
promise Bumped sinon from 4.4.6 to 7.3.2 (#10400) 2019-01-21 17:53:44 +01:00
security Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
social Moved social utility to lib/social 2017-12-14 22:34:05 +01:00
ghost-version_spec.js Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
request_spec.js Removed test from request_spec.js 2019-02-11 12:11:23 +01:00