@ecency/render-helper 2.3.3 → 2.3.5
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/consts/allowed-attributes.const.js +6 -6
- package/lib/consts/allowed-attributes.const.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/render-helper.js +1 -1
- package/package.json +1 -1
- package/src/consts/allowed-attributes.const.ts +6 -6
- package/src/index.ts +3 -1
|
@@ -36,12 +36,12 @@ exports.ALLOWED_ATTRIBUTES = {
|
|
|
36
36
|
'blockquote': ['class'],
|
|
37
37
|
'sup': [],
|
|
38
38
|
'sub': [],
|
|
39
|
-
'h1': [],
|
|
40
|
-
'h2': [],
|
|
41
|
-
'h3': [],
|
|
42
|
-
'h4': [],
|
|
43
|
-
'h5': [],
|
|
44
|
-
'h6': [],
|
|
39
|
+
'h1': ['dir'],
|
|
40
|
+
'h2': ['dir'],
|
|
41
|
+
'h3': ['dir'],
|
|
42
|
+
'h4': ['dir'],
|
|
43
|
+
'h5': ['dir'],
|
|
44
|
+
'h6': ['dir'],
|
|
45
45
|
'p': ['dir'],
|
|
46
46
|
'center': [],
|
|
47
47
|
'ul': [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allowed-attributes.const.js","sourceRoot":"","sources":["../../src/consts/allowed-attributes.const.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAiB;IAC9C,GAAG,EAAE;QACH,MAAM;QACN,QAAQ;QACR,KAAK;QACL,eAAe;QACf,UAAU;QACV,aAAa;QACb,WAAW;QACX,gBAAgB;QAChB,aAAa;QACb,gBAAgB;QAChB,cAAc;QACd,iBAAiB;QACjB,iBAAiB;QACjB,eAAe;QACf,gBAAgB;QAChB,OAAO;QACP,OAAO;QACP,SAAS;KACV;IACD,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,CAAC,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,SAAS,CAAC;IACtH,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,QAAQ,EAAE,EAAE;IACZ,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,YAAY,EAAE,CAAC,OAAO,CAAC;IACvB,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"allowed-attributes.const.js","sourceRoot":"","sources":["../../src/consts/allowed-attributes.const.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAiB;IAC9C,GAAG,EAAE;QACH,MAAM;QACN,QAAQ;QACR,KAAK;QACL,eAAe;QACf,UAAU;QACV,aAAa;QACb,WAAW;QACX,gBAAgB;QAChB,aAAa;QACb,gBAAgB;QAChB,cAAc;QACd,iBAAiB;QACjB,iBAAiB;QACjB,eAAe;QACf,gBAAgB;QAChB,OAAO;QACP,OAAO;QACP,SAAS;KACV;IACD,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC;IAC9B,MAAM,EAAE,CAAC,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,SAAS,CAAC;IACtH,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,QAAQ,EAAE,EAAE;IACZ,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,YAAY,EAAE,CAAC,OAAO,CAAC;IACvB,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,CAAC,KAAK,CAAC;IACb,IAAI,EAAE,CAAC,KAAK,CAAC;IACb,IAAI,EAAE,CAAC,KAAK,CAAC;IACb,IAAI,EAAE,CAAC,KAAK,CAAC;IACb,IAAI,EAAE,CAAC,KAAK,CAAC;IACb,IAAI,EAAE,CAAC,KAAK,CAAC;IACb,GAAG,EAAE,CAAC,KAAK,CAAC;IACZ,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,EAAE;CACV,CAAA"}
|
package/lib/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ import { getPostBodySummary as postBodySummary } from './post-body-summary';
|
|
|
4
4
|
import { setProxyBase, proxifyImageSrc } from './proxify-image-src';
|
|
5
5
|
import { setCacheSize } from './cache';
|
|
6
6
|
import { SECTION_LIST } from './consts';
|
|
7
|
-
|
|
7
|
+
import { isValidPermlink } from "./helper";
|
|
8
|
+
export { renderPostBody, catchPostImage, postBodySummary, proxifyImageSrc, setProxyBase, setCacheSize, SECTION_LIST, isValidPermlink };
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SECTION_LIST = exports.setCacheSize = exports.setProxyBase = exports.proxifyImageSrc = exports.postBodySummary = exports.catchPostImage = exports.renderPostBody = void 0;
|
|
3
|
+
exports.isValidPermlink = exports.SECTION_LIST = exports.setCacheSize = exports.setProxyBase = exports.proxifyImageSrc = exports.postBodySummary = exports.catchPostImage = exports.renderPostBody = void 0;
|
|
4
4
|
var markdown_2_html_1 = require("./markdown-2-html");
|
|
5
5
|
Object.defineProperty(exports, "renderPostBody", { enumerable: true, get: function () { return markdown_2_html_1.markdown2Html; } });
|
|
6
6
|
var catch_post_image_1 = require("./catch-post-image");
|
|
@@ -14,4 +14,6 @@ var cache_1 = require("./cache");
|
|
|
14
14
|
Object.defineProperty(exports, "setCacheSize", { enumerable: true, get: function () { return cache_1.setCacheSize; } });
|
|
15
15
|
var consts_1 = require("./consts");
|
|
16
16
|
Object.defineProperty(exports, "SECTION_LIST", { enumerable: true, get: function () { return consts_1.SECTION_LIST; } });
|
|
17
|
+
var helper_1 = require("./helper");
|
|
18
|
+
Object.defineProperty(exports, "isValidPermlink", { enumerable: true, get: function () { return helper_1.isValidPermlink; } });
|
|
17
19
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAAmE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAAmE;AASjE,+FATwB,+BAAc,OASxB;AARhB,uDAAmD;AASjD,+FATO,iCAAc,OASP;AARhB,yDAA2E;AASzE,gGAT6B,sCAAe,OAS7B;AARjB,yDAAmE;AAUjE,6FAVO,gCAAY,OAUP;AADZ,gGATqB,mCAAe,OASrB;AARjB,iCAAsC;AAUpC,6FAVO,oBAAY,OAUP;AATd,mCAAuC;AAUrC,6FAVO,qBAAY,OAUP;AATd,mCAA2C;AAUzC,gGAVO,wBAAe,OAUP"}
|