0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/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 unused GhostErrors 2019-02-24 10:52:03 +07:00
fs Updated docs links to best equivalents (#10386) 2019-01-17 06:57:37 +00:00
image 🐛 Fixed responsive images for .icos 2019-01-15 17:41:25 +00:00
members Improved Members security and performance (#10511) 2019-02-23 04:47:42 +01:00
mobiledoc Updated mobiledoc renderer to insert begin/end HTML comments around cards 2019-02-25 18:05:01 +07:00
promise Extended sequence utility 2018-10-03 00:17:45 +02:00
security Added Node v10 Support (#10058) 2018-10-30 15:45:51 +07:00
social 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
constants.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
ghost-version.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
request.js Set Ghost user-agent header for got requests (#10424) 2019-01-28 17:01:34 +01:00