Skip to content

Commit

Permalink
release: 3.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoulixiang committed Aug 3, 2024
1 parent 83491c5 commit c509888
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 更新日志

## 3.25.0

- 【feat】`html` API 增加 `rp` 选项,用于去除输出结果中的 `<rp>(</rp>``<rp>)</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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pinyin-pro",
"version": "3.24.1",
"version": "3.24.2",
"description": "准确率和性能最优异的汉字转拼音库。获取中文拼音、韵母、声母、声调、首字母,支持拼音匹配",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
6 changes: 6 additions & 0 deletions types/core/html/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ interface HtmlOptions {
* @value false:不开启
*/
toneSandhi?: boolean;
/**
* @description 是否保留 <rp>(</rp> 标签,默认为保留
* @value true:保留 <rp>(</rp>
* @value false:移除 <rp>(</rp>
*/
rp?: boolean;
}
/**
* @description: 获取带拼音汉字的 html 字符串
Expand Down

0 comments on commit c509888

Please sign in to comment.