mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Update dependency @tryghost/kg-markdown-html-renderer to v2.0.0
no issue - `version` integer parameter in the `render` method has been replaced with an `options` object parameter
This commit is contained in:
parent
8f65de87c7
commit
f3627c5fc3
4 changed files with 7 additions and 7 deletions
|
@ -54,7 +54,7 @@ module.exports.up = function regenerateKoenigBetaHTML(options) {
|
|||
|
||||
// re-render the html to remove .kg-post wrapper and adjust image classes
|
||||
let version = 2;
|
||||
let html = mobiledocLib.mobiledocHtmlRenderer.render(mobiledoc, version);
|
||||
let html = mobiledocLib.mobiledocHtmlRenderer.render(mobiledoc, {version});
|
||||
|
||||
return models.Post.edit({
|
||||
html,
|
||||
|
|
|
@ -101,7 +101,7 @@ module.exports.down = (options) => {
|
|||
|
||||
// CASE: revert: all new editor posts to the old editor format
|
||||
if (mobiledoc && post.html) {
|
||||
html = mobiledocLib.mobiledocHtmlRenderer.render(mobiledoc, version);
|
||||
html = mobiledocLib.mobiledocHtmlRenderer.render(mobiledoc, {version});
|
||||
}
|
||||
|
||||
return localOptions
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
"@tryghost/kg-default-atoms": "1.0.0",
|
||||
"@tryghost/kg-default-cards": "1.0.2",
|
||||
"@tryghost/kg-markdown-html-renderer": "1.0.3",
|
||||
"@tryghost/kg-mobiledoc-html-renderer": "^1.0.0",
|
||||
"@tryghost/kg-mobiledoc-html-renderer": "2.0.0",
|
||||
"@tryghost/members-api": "0.18.0",
|
||||
"@tryghost/members-ssr": "0.7.4",
|
||||
"@tryghost/mw-session-from-token": "0.1.0",
|
||||
|
|
|
@ -431,10 +431,10 @@
|
|||
markdown-it-lazy-headers "^0.1.3"
|
||||
markdown-it-mark "^3.0.0"
|
||||
|
||||
"@tryghost/kg-mobiledoc-html-renderer@^1.0.0":
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/kg-mobiledoc-html-renderer/-/kg-mobiledoc-html-renderer-1.0.0.tgz#7892ead37a7d709dd3407b32e264f76df946bd71"
|
||||
integrity sha512-/py2bsGEM+L98Tmurbom8Hc2GbcOXd1bPx9C/7PNALlXD92RiNzzrxXnTrb8XnJKAeIF5o1XxBSsx0YvwJcxCQ==
|
||||
"@tryghost/kg-mobiledoc-html-renderer@2.0.0":
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@tryghost/kg-mobiledoc-html-renderer/-/kg-mobiledoc-html-renderer-2.0.0.tgz#c7799110306b64858ba90c477bce117e13f59950"
|
||||
integrity sha512-YH1VoCrPRf1Ze1CWH34FOP00e/KJ61Bf71E0SazDN92oIF2DXzBqpyycSNHin/+gOfik3wCqxJSFMbhDqGt8+A==
|
||||
dependencies:
|
||||
mobiledoc-dom-renderer "^0.7.0"
|
||||
simple-dom "^1.4.0"
|
||||
|
|
Loading…
Reference in a new issue