@limetech/lime-elements 37.19.1 → 37.20.0

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [37.20.0](https://github.com/Lundalogik/lime-elements/compare/v37.19.1...v37.20.0) (2024-04-23)
2
+
3
+
4
+ ### Features
5
+
6
+
7
+ * **markdown:** allow `height` and `width` in inline `style` attribute ([b79a38d](https://github.com/Lundalogik/lime-elements/commit/b79a38d741c03c9bedbc54f6d4146bc49957a9a5)), closes [Lundalogik/limepkg-email#695](https://github.com/Lundalogik/limepkg-email/issues/695)
8
+
1
9
  ## [37.19.1](https://github.com/Lundalogik/lime-elements/compare/v37.19.0...v37.19.1) (2024-04-23)
2
10
 
3
11
 
@@ -43604,12 +43604,14 @@ const allowedCssProperties = [
43604
43604
  'color',
43605
43605
  'font-style',
43606
43606
  'font-weight',
43607
+ 'height',
43607
43608
  'text-decoration-color',
43608
43609
  'text-decoration-line',
43609
43610
  'text-decoration-skip-ink',
43610
43611
  'text-decoration-style',
43611
43612
  'text-decoration-thickness',
43612
43613
  'text-decoration',
43614
+ 'width',
43613
43615
  ];
43614
43616
 
43615
43617
  /**
@@ -43700,7 +43702,7 @@ async function markdownToHTML(text, options) {
43700
43702
  .use(rehypeRaw)
43701
43703
  .use(rehypeSanitize, Object.assign(Object.assign({}, defaultSchema), {
43702
43704
  // Allow the `style` attribute on all elements
43703
- attributes: Object.assign(Object.assign({}, defaultSchema.attributes), { '*': ['style'] }) }))
43705
+ attributes: Object.assign(Object.assign({}, defaultSchema.attributes), { '*': ['height', 'style', 'width'] }) }))
43704
43706
  .use(() => {
43705
43707
  return (tree) => {
43706
43708
  // Run the sanitizeStyle function on all elements, to sanitize