diff --git a/doc/features/features.json b/doc/features/features.json index ae1882a4d..0d4711987 100644 --- a/doc/features/features.json +++ b/doc/features/features.json @@ -559,6 +559,14 @@ "fullRelativePath": "../../registry/dist/components/video/danmaku/expand.js", "fullAbsolutePath": "registry/dist/components/video/danmaku/expand.js" }, + { + "type": "component", + "name": "unescapeDanmaku", + "displayName": "弹幕转义", + "description": "将弹幕中的 `\\n` 替换为真实的换行, 注意这可能导致原先不重叠的弹幕发生重叠.\r\n", + "fullRelativePath": "../../registry/dist/components/video/danmaku/unescape.js", + "fullAbsolutePath": "registry/dist/components/video/danmaku/unescape.js" + }, { "type": "component", "name": "videoDefaultLocation", diff --git a/doc/features/features.md b/doc/features/features.md index 847023711..746b5fd5c 100644 --- a/doc/features/features.md +++ b/doc/features/features.md @@ -698,6 +698,15 @@ by [@kdxcxs](https://github.com/kdxcxs) 每次加载视频时自动展开弹幕列表, 如果弹幕装载量超过 `最大弹幕数量`, 则不展开以免对页面造成卡顿. (`最大弹幕数量` 是和视频的总弹幕量对比, 不一定和播放器实际装载的弹幕量相等) +### [弹幕转义](../../registry/dist/components/video/danmaku/unescape.js) +`unescapeDanmaku` + +**jsDelivr:** [`Stable`](https://fastly.jsdelivr.net/gh/the1812/Bilibili-Evolved@master/registry/dist/components/video/danmaku/unescape.js) / [`Preview`](https://fastly.jsdelivr.net/gh/the1812/Bilibili-Evolved@preview/registry/dist/components/video/danmaku/unescape.js) + +**GitHub:** [`Stable`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/registry/dist/components/video/danmaku/unescape.js) / [`Preview`](https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/registry/dist/components/video/danmaku/unescape.js) + +将弹幕中的 `\n` 替换为真实的换行, 注意这可能导致原先不重叠的弹幕发生重叠. + ### [视频页默认定位](../../registry/dist/components/video/default-location.js) `videoDefaultLocation`