diff --git a/CHANGELOG.md b/CHANGELOG.md index cdc0a21..1f8ed6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # 更新日志 +## 3.25.0 + +- 【feat】`html` API 增加 `rp` 选项,用于去除输出结果中的 `(` 和 `)` [#272](https://github.com/zh-lx/pinyin-pro/pull/272) +- 【feat】`html` API 中自定义类名为 `false` 或者 `null` 时,保持默认类名 [#271](https://github.com/zh-lx/pinyin-pro/pull/271) + ## 3.24.1 - 【fix】修复 `segment` 对于最后的标点符号丢弃的问题 [#268](https://github.com/zh-lx/pinyin-pro/pull/268) diff --git a/package.json b/package.json index 02d6eac..2332d03 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pinyin-pro", - "version": "3.24.1", + "version": "3.24.2", "description": "准确率和性能最优异的汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母,支持拼音匹配", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/types/core/html/index.d.ts b/types/core/html/index.d.ts index d7f6c65..6ca74cd 100644 --- a/types/core/html/index.d.ts +++ b/types/core/html/index.d.ts @@ -35,6 +35,12 @@ interface HtmlOptions { * @value false:不开启 */ toneSandhi?: boolean; + /** + * @description 是否保留 ( 标签,默认为保留 + * @value true:保留 ( + * @value false:移除 ( + */ + rp?: boolean; } /** * @description: 获取带拼音汉字的 html 字符串