0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/lib/mobiledoc/cards
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
..
_markdown.js 🐛 Fixed rendering and url transformation of v1 "card-markdown" aliased cards 2019-10-10 16:35:29 +01:00
bookmark.js Fixed error when saving unknown url in bookmark card (#11210) 2019-10-08 11:11:32 +01:00
card-markdown.js 🐛 Fixed rendering and url transformation of v1 "card-markdown" aliased cards 2019-10-10 16:35:29 +01:00
code.js Added transformer methods to mobiledoc cards 2019-10-07 22:59:19 +01:00
embed.js Added transformer methods to mobiledoc cards 2019-10-07 22:59:19 +01:00
gallery.js Added transformer methods to mobiledoc cards 2019-10-07 22:59:19 +01:00
hr.js
html.js Added transformer methods to mobiledoc cards 2019-10-07 22:59:19 +01:00
image.js Added transformer methods to mobiledoc cards 2019-10-07 22:59:19 +01:00
index.js
markdown.js 🐛 Fixed rendering and url transformation of v1 "card-markdown" aliased cards 2019-10-10 16:35:29 +01:00