Ghost/core/test/unit
Kevin Ansfield e953a1c3a8
Koenig - Versioned renderer (#9606)
refs https://github.com/TryGhost/Ghost/issues/9505
- updates mobiledoc converter's `render` method to accept a `version` argument
    - `1` === Ghost 1.0's markdown-only renderer output
    - `2` === Koenig's full mobiledoc renderer output
- switch between mobiledoc renderer versions in Post model's `onSaving` hook
    - version 1 by default
    - version 2 if Koenig is enabled (currently behind dev experiments config + labs flag)
    - version 2 if the post's mobiledoc is not compatible with the markdown-only renderer
- "version 2" full-Koenig mobiledoc renderer output
    - wraps content in a `.kg-post` div
    - removes wrapper around markdown and html card output
    - adds classes to image card output including selected image size/style
- standardises es6 usage across mobiledoc related files
2018-05-04 14:59:39 +01:00
..
adapters Use Promise support which was added in fs-extra 3.x 2017-12-13 20:57:11 +01:00
api Extended the API object validation 2018-04-05 18:51:58 +02:00
apps Moved default-cards app to lib/mobiledoc (#9341) 2017-12-14 14:44:01 +00:00
config fix(config): cleanup absolute path config function (#8641) 2017-07-06 00:04:18 +02:00
controllers Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
data 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
helpers 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
lib Koenig - Versioned renderer (#9606) 2018-05-04 14:59:39 +01:00
models Koenig - Versioned renderer (#9606) 2018-05-04 14:59:39 +01:00
public Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00
services 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
web Extended ghost version utility (#9278) 2018-01-03 20:20:18 +01:00
filters_spec.js Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00