mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
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 <div class="wp-block-buttons"> <div class="wp-block-button"> <a href="https://example.com" class="wp-block-button__link"> Testing button </a> </div> </div> ``` Example Substack html: ```html <a class="button primary" href="https://ghost.org"> <span>Custom Button</span> </a> ```
This commit is contained in:
parent
a64c186179
commit
50b51e222c
2 changed files with 10 additions and 10 deletions
|
@ -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": {
|
||||
|
|
18
yarn.lock
18
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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue