From 50b51e222caf79cbebba230f22ee0c63ba64c1c2 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Thu, 11 Nov 2021 14:29:15 +0000 Subject: [PATCH] Added support for parsing Wordpress and Substack button html to button cards refs https://github.com/TryGhost/Team/issues/1214 - bumps @tryghost/html-to-mobiledoc with support for parsing Wordpress/Substack HTML into our button cards Example Wordpress html: ```html
``` Example Substack html: ```html Custom Button ``` --- package.json | 2 +- yarn.lock | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index d93379b034..66d6dfcf9f 100644 --- a/package.json +++ b/package.json @@ -173,7 +173,7 @@ "xml": "1.0.1" }, "optionalDependencies": { - "@tryghost/html-to-mobiledoc": "1.2.1", + "@tryghost/html-to-mobiledoc": "1.2.2", "sqlite3": "5.0.2" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index 655a7e090f..ca84543735 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1415,12 +1415,12 @@ dependencies: lodash-es "^4.17.11" -"@tryghost/html-to-mobiledoc@1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@tryghost/html-to-mobiledoc/-/html-to-mobiledoc-1.2.1.tgz#80d3a5777ad6c16faf45a9434afa36c11c0c38f0" - integrity sha512-9K9HQ/tKudUpxzHqnE/MpEBpMEMeXEa5T5O6jaCChvy9pR3TwMSMoXfS3A22ljLovyyQ02L/avavLZITx6nGeg== +"@tryghost/html-to-mobiledoc@1.2.2": + version "1.2.2" + resolved "https://registry.yarnpkg.com/@tryghost/html-to-mobiledoc/-/html-to-mobiledoc-1.2.2.tgz#a25dce21afdf01e288222b4a6eec8389abff32b1" + integrity sha512-yMWPmhTAaEyo6/OHuJ9R7eqOkaX1A38LfXxVkFWtn9wIbIH1wrAnMzyfBhnONMXDo+kahX4Go+dNVlxM7R2NIQ== dependencies: - "@tryghost/kg-parser-plugins" "2.4.1" + "@tryghost/kg-parser-plugins" "2.4.2" "@tryghost/mobiledoc-kit" "^0.12.4-ghost.1" jsdom "^16.5.3" @@ -1500,10 +1500,10 @@ semver "^7.3.4" simple-dom "^1.4.0" -"@tryghost/kg-parser-plugins@2.4.1": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@tryghost/kg-parser-plugins/-/kg-parser-plugins-2.4.1.tgz#dbf0ff97e545c5d8bbccf99ceb1fabe0a8ac3a86" - integrity sha512-WY9pYFJA1AvXxZaF016HkZgLETiN+T63vMZ8Ubc1f0gF1ZhplAT2y0wt94oOlYafiSHDTJvtCbU30+sntejS8w== +"@tryghost/kg-parser-plugins@2.4.2": + version "2.4.2" + resolved "https://registry.yarnpkg.com/@tryghost/kg-parser-plugins/-/kg-parser-plugins-2.4.2.tgz#6590fe43e1d0d0715e56753c52dd6d69134b9326" + integrity sha512-V8PGdeX5lXrLnwEod+ih7k7dAKKAfvnuyaIavxgcmDLegjm0auHNDZogl9VljlSKQj7LaYRDO7I2bp4+Gv7Giw== dependencies: "@tryghost/kg-clean-basic-html" "^2.1.1"