@nerimity/html-embed 1.1.6 → 1.1.7
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAwHA,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM;;;;;;;;IAEtC"}
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,9 @@ const css_1 = __importDefault(require("css"));
|
|
|
9
9
|
const allowedTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'img', 'span', 'strong', 'a', "style", "p", "ul", "li", "ol", "table", "thead", "tbody", "tr", "td", "th", "blockquote", "pre", "br"];
|
|
10
10
|
const allowedAttributes = ["href", "src", "color", "style", "class"];
|
|
11
11
|
const allowedCssProperties = [
|
|
12
|
+
"background-clip",
|
|
13
|
+
"-webkit-background-clip",
|
|
14
|
+
"-webkit-text-fill-color",
|
|
12
15
|
"display",
|
|
13
16
|
"position",
|
|
14
17
|
"inset",
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -5,6 +5,9 @@ import css from 'css';
|
|
|
5
5
|
const allowedTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'div', 'img', 'span', 'strong', 'a', "style", "p", "ul", "li", "ol", "table", "thead", "tbody", "tr", "td", "th", "blockquote", "pre", "br"]
|
|
6
6
|
const allowedAttributes = ["href", "src", "color", "style", "class"]
|
|
7
7
|
const allowedCssProperties = [
|
|
8
|
+
"background-clip",
|
|
9
|
+
"-webkit-background-clip",
|
|
10
|
+
"-webkit-text-fill-color",
|
|
8
11
|
"display",
|
|
9
12
|
"position",
|
|
10
13
|
"inset",
|