Ghost/core/server/lib/mobiledoc
Kevin Ansfield 6b3c4a59b4 🐛 Fixed rendering and url transformation of v1 "card-markdown" aliased cards
no issue

- Ghost 1.x stored markdown cards with the name `card-markdown`, this was changed in Ghost 2.x to be `markdown`. To keep compatibility with the older mobiledoc content the `markdown` card was aliased using a straightforward `Object.assign()`. Unfortunately this failed to work adequately when the url transformation functions were added to cards and resulted in corrupted data being returned in API responses
- moved the markdown card definition into a factory function so that a clean card definition object can be used for both the `markdown` and `card-markdown` cards
2019-10-10 16:35:29 +01:00
..
atoms Removed more 'use strict' usages 2018-06-02 21:38:11 +02:00
cards 🐛 Fixed rendering and url transformation of v1 "card-markdown" aliased cards 2019-10-10 16:35:29 +01:00
converters 🔥 Dropped Node v6 support (#10771) 2019-06-03 14:20:23 +02:00
create-card.js Added transformer methods to mobiledoc cards 2019-10-07 22:59:19 +01:00
index.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00