@limetech/lime-elements 37.17.2 → 37.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/limel-markdown.cjs.entry.js +2 -5
- package/dist/cjs/limel-markdown.cjs.entry.js.map +1 -1
- package/dist/collection/components/markdown/markdown-parser.js +4 -6
- package/dist/collection/components/markdown/markdown-parser.js.map +1 -1
- package/dist/esm/limel-markdown.entry.js +2 -5
- package/dist/esm/limel-markdown.entry.js.map +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-6f03ee09.entry.js → p-ad6b52f8.entry.js} +2 -2
- package/dist/lime-elements/{p-6f03ee09.entry.js.map → p-ad6b52f8.entry.js.map} +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [37.17.3](https://github.com/Lundalogik/lime-elements/compare/v37.17.2...v37.17.3) (2024-04-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
* **markdown:** fix sanitization accidentally removing images ([c452f30](https://github.com/Lundalogik/lime-elements/commit/c452f3076e1c7dbe36539adb83d684c046f86062)), closes [Lundalogik/limepkg-email#668](https://github.com/Lundalogik/limepkg-email/issues/668)
|
|
8
|
+
|
|
1
9
|
## [37.17.2](https://github.com/Lundalogik/lime-elements/compare/v37.17.1...v37.17.2) (2024-04-15)
|
|
2
10
|
|
|
3
11
|
|
|
@@ -43698,12 +43698,9 @@ async function markdownToHTML(text, options) {
|
|
|
43698
43698
|
.use(remarkRehype, { allowDangerousHtml: true })
|
|
43699
43699
|
.use(rehypeExternalLinks, { target: '_blank' })
|
|
43700
43700
|
.use(rehypeRaw)
|
|
43701
|
-
.use(rehypeSanitize, {
|
|
43701
|
+
.use(rehypeSanitize, Object.assign(Object.assign({}, defaultSchema), {
|
|
43702
43702
|
// Allow the `style` attribute on all elements
|
|
43703
|
-
attributes: {
|
|
43704
|
-
'*': ['style'],
|
|
43705
|
-
},
|
|
43706
|
-
})
|
|
43703
|
+
attributes: Object.assign(Object.assign({}, defaultSchema.attributes), { '*': ['style'] }) }))
|
|
43707
43704
|
.use(() => {
|
|
43708
43705
|
return (tree) => {
|
|
43709
43706
|
// Run the sanitizeStyle function on all elements, to sanitize
|