From 05bcf7ee6a6a5c86760aa643b0824088fb75eb7b Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 1 Feb 2018 15:50:43 +0100 Subject: [PATCH] Fixed missing export of `card-markdown` card no issue - fixes the bug introduced in https://github.com/TryGhost/Ghost/commit/0833b2855761f6d990de6bf0d883f78b4f25dd30 --- core/server/lib/mobiledoc/cards/card-markdown.js | 7 +++++-- core/server/lib/mobiledoc/cards/index.js | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/core/server/lib/mobiledoc/cards/card-markdown.js b/core/server/lib/mobiledoc/cards/card-markdown.js index cd1f94cf3f..10643b9d32 100644 --- a/core/server/lib/mobiledoc/cards/card-markdown.js +++ b/core/server/lib/mobiledoc/cards/card-markdown.js @@ -1,4 +1,7 @@ +'use strict'; + // this card is just an alias of the `markdown` card which is necessary because // our markdown-only editor was using the `card-markdown` card name -let markdownCard = require('./markdown'); -module.exports = markdownCard; +const markdownCard = require('./markdown'); + +module.exports = Object.assign(markdownCard, {name: 'card-markdown'}); diff --git a/core/server/lib/mobiledoc/cards/index.js b/core/server/lib/mobiledoc/cards/index.js index 3c70f2f368..045726d1ce 100644 --- a/core/server/lib/mobiledoc/cards/index.js +++ b/core/server/lib/mobiledoc/cards/index.js @@ -1,6 +1,7 @@ var hr = require('./hr'), html = require('./html'), image = require('./image'), - markdown = require('./markdown'); + markdown = require('./markdown'), + cardMarkdown = require('./card-markdown'); -module.exports = [hr, html, image, markdown]; +module.exports = [hr, html, image, markdown, cardMarkdown];