@pixui-dev/pixui-richtext-helper 0.2.14 → 0.2.16

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.
@@ -389,7 +389,7 @@ var RichTextCore = /** @class */ (function () {
389
389
  */
390
390
  RichTextCore.processSegment = function (segmentHtml, config) {
391
391
  var $ = cheerio.load(segmentHtml, null, false);
392
- // 预处理:data-list → class、class → style、标题后补 <br>、margin→padding 合并
392
+ // 预处理:data-list → class、class → stylemargin→padding 合并
393
393
  this.preprocess($);
394
394
  // 规范图片尺寸单位:img 的 width/height 数字补 px
395
395
  this.fixImgSizeUnit($);
@@ -497,14 +497,6 @@ var RichTextCore = /** @class */ (function () {
497
497
  }
498
498
  }
499
499
  });
500
- // 在所有标题标签后插入换行 <br>
501
- $("h1, h2, h3, h4, h5, h6").each(function () {
502
- // 若标题后紧跟已有换行则不再追加
503
- var next = $(this).next();
504
- if (!next.is("br")) {
505
- $(this).after("<br>");
506
- }
507
- });
508
500
  // 将所有的margin-left,margin-right转换为padding-left,padding-right
509
501
  $("*").each(function () {
510
502
  var oriStyle = $(this).attr("style") || "";
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const LIB_VERSION = "0.2.11";
1
+ export declare const LIB_VERSION = "0.2.15";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LIB_VERSION = void 0;
4
4
  /* Auto-generated by scripts/generate-version.js */
5
- exports.LIB_VERSION = "0.2.11";
5
+ exports.LIB_VERSION = "0.2.15";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixui-dev/pixui-richtext-helper",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "pixui richtext helper",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,8 +10,7 @@
10
10
  "readme.md"
11
11
  ],
12
12
  "scripts": {
13
- "test": "echo \"Error: no test specified\" && exit 1",
14
- "build": "rm -rf dist && tsc"
13
+ "build": "node scripts/generate-version.js && rm -rf dist && tsc"
15
14
  },
16
15
  "publishConfig": {
17
16
  "access": "public"
@@ -25,4 +24,4 @@
25
24
  "dependencies": {
26
25
  "cheerio": "1.0.0-rc.10"
27
26
  }
28
- }
27
+ }
package/readme.md CHANGED
@@ -145,3 +145,7 @@ componentDidMount() { // 在节点渲染后绑定点击事件
145
145
 
146
146
  1. 适配阿语从右到左的布局
147
147
  2. 适配列表相关样式
148
+
149
+ 0.2.14(f196abf819a64d9b762137512560261e1742c4d4)
150
+
151
+ 1. 修复:段落缩进距离过长