0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test/unit/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 old jshint/jscs rules 2018-06-02 21:48:23 +02:00
cards 🐛 Fixed rendering and url transformation of v1 "card-markdown" aliased cards 2019-10-10 16:35:29 +01:00
converters Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00