diff --git a/core/server/lib/mobiledoc/cards/html.js b/core/server/lib/mobiledoc/cards/html.js
index 618e6ff94d..80f9bf6fe3 100644
--- a/core/server/lib/mobiledoc/cards/html.js
+++ b/core/server/lib/mobiledoc/cards/html.js
@@ -3,7 +3,9 @@
module.exports = {
name: 'html',
type: 'dom',
- render({payload, env: {dom}}) {
+ render(opts) {
+ let payload = opts.payload;
+ let dom = opts.env.dom;
let caption = '';
if (payload.caption) {
diff --git a/core/server/lib/mobiledoc/cards/image.js b/core/server/lib/mobiledoc/cards/image.js
index d3dff907db..6bb091ea01 100644
--- a/core/server/lib/mobiledoc/cards/image.js
+++ b/core/server/lib/mobiledoc/cards/image.js
@@ -3,7 +3,9 @@
module.exports = {
name: 'image',
type: 'dom',
- render({payload, env: {dom}}) {
+ render(opts) {
+ let payload = opts.payload;
+ let dom = opts.env.dom;
let figure = dom.createElement('figure');
let img = dom.createElement('img');