zenn-markdown-html 0.1.133 → 0.1.134-alpha.1
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/lib/sanitizer.js +1 -4
- package/package.json +2 -2
package/lib/sanitizer.js
CHANGED
|
@@ -9,7 +9,7 @@ var _sanitizeHtml = _interopRequireDefault(require("sanitize-html"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
const tags = ['a', 'aside', 'blockquote', 'br', 'circle', 'code', 'details', 'div', 'em', 'embed-katex', 'eq', 'eqn', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'iframe', 'img', 'input', 'li', 'ol', 'p', 'pre', 's', 'section', 'span', 'strong', 'summary', 'sup', '
|
|
12
|
+
const tags = ['a', 'aside', 'blockquote', 'br', 'circle', 'code', 'details', 'div', 'em', 'embed-katex', 'eq', 'eqn', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'iframe', 'img', 'input', 'li', 'ol', 'p', 'pre', 's', 'section', 'span', 'strong', 'summary', 'sup', 'table', 'tbody', 'td', 'text', 'th', 'thead', 'tr', 'ul'];
|
|
13
13
|
const attributes = {
|
|
14
14
|
a: ['aria-hidden', 'class', 'href', 'id', 'rel', 'style', 'target', 'title'],
|
|
15
15
|
aside: ['class'],
|
|
@@ -43,9 +43,6 @@ const attributes = {
|
|
|
43
43
|
strong: [],
|
|
44
44
|
summary: [],
|
|
45
45
|
sup: ['class'],
|
|
46
|
-
// キャメルケースはすべて小文字に変換でなければ認識してくれないそうなので、念の為両方指定しておく
|
|
47
|
-
// refs: https://github.com/apostrophecms/sanitize-html/issues/489
|
|
48
|
-
svg: ['aria-label', 'class', 'role', 'viewBox', 'viewbox', 'xmlns'],
|
|
49
46
|
table: [],
|
|
50
47
|
tbody: [],
|
|
51
48
|
td: ['style'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zenn-markdown-html",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.134-alpha.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Convert markdown to zenn flavor html.",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"prismjs": "^1.27.0",
|
|
56
56
|
"sanitize-html": "^2.7.2"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "1142b026872f7ba34c0b3d2f18505dbf87a79c30",
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
}
|