Ghost/core/test/unit/lib
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
..
common Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
fs Updated docs api links to be version-less 2019-07-25 15:17:23 +08:00
image Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
mobiledoc 🐛 Fixed rendering and url transformation of v1 "card-markdown" aliased cards 2019-10-10 16:35:29 +01:00
promise Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00
security Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
ghost-version_spec.js Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
request_spec.js Updated tests eslint config to use eslint-plugin-ghost@0.5.0 2019-08-19 13:38:35 +01:00