2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Ghost/core/server
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 Bumped knex & bookshelf dependencies (#10404) 2019-01-21 21:53:11 +01:00
api Removed requirement to provide authors for admin api keys 2019-02-25 09:16:32 +01:00
apps Removed members internal app (#10379) 2019-01-17 12:03:40 +01:00
config Improved Members security and performance (#10511) 2019-02-23 04:47:42 +01:00
data Added migration to insert builtin Zapier integration (#10500) 2019-02-15 14:48:21 +00:00
helpers Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
lib Updated mobiledoc renderer to insert begin/end HTML comments around cards 2019-02-25 18:05:01 +07:00
models Removed default debug log from base model when emittingg events 2019-02-23 22:31:56 +01:00
public Removed change frequency and priority fields from sitemap generator (#9771) 2018-09-24 19:16:31 +02:00
services Triggered webhooks with all content formats 2019-02-25 09:46:50 +01:00
translations Added user friendly error messages to Admin API 2019-02-25 10:40:35 +07:00
views Aliased {{@blog}} as {{@site}} in the theme API 2019-01-04 12:17:32 +00:00
web Added user friendly error messages to Admin API 2019-02-25 10:40:35 +07:00
analytics-events.js Added back "theme.uploaded" analytics event (#10450) 2019-02-05 17:38:40 +01:00
filters.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
ghost-server.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
index.js De-aliased api versions in codebase (#10375) 2019-01-14 19:49:55 +01:00
overrides.js Disabled bluebird debug logs 2018-08-13 14:01:31 +02:00
update-check.js De-aliased api versions in codebase (#10375) 2019-01-14 19:49:55 +01:00