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];