mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix markdown render
This commit is contained in:
3 files changed
+8
-3
No files matched your search
@@ -111,6 +111,11 @@ Hydro 用户群:1085853538
|
|||||||
<details>
|
<details>
|
||||||
<summary><h2>更新日志(点击展开)</h2></summary>
|
<summary><h2>更新日志(点击展开)</h2></summary>
|
||||||
|
|
||||||
|
## UI 4.54.2
|
||||||
|
|
||||||
|
- ui: 修复 markdown 预览
|
||||||
|
- ui: 优化禁用内置登录时的登录框显示
|
||||||
|
|
||||||
## UI 4.54.1
|
## UI 4.54.1
|
||||||
|
|
||||||
- ui: 修复 view-transitions
|
- ui: 修复 view-transitions
|
||||||
|
|||||||
@@ -93,8 +93,8 @@ export function Media(md: MarkdownIt) {
|
|||||||
md.renderer.rules.video = function tokenizeReturn(tokens, idx) {
|
md.renderer.rules.video = function tokenizeReturn(tokens, idx) {
|
||||||
let src = md.utils.escapeHtml(tokens[idx].attrGet('src'));
|
let src = md.utils.escapeHtml(tokens[idx].attrGet('src'));
|
||||||
const service = md.utils.escapeHtml(tokens[idx].attrGet('service')).toLowerCase();
|
const service = md.utils.escapeHtml(tokens[idx].attrGet('service')).toLowerCase();
|
||||||
if (Hydro.module.richmedia?.[service]) {
|
if (Hydro?.module?.richmedia?.[service]) {
|
||||||
const result = Hydro.module.richmedia[service].get(service, src, md);
|
const result = Hydro?.module?.richmedia[service].get(service, src, md);
|
||||||
if (result) return result;
|
if (result) return result;
|
||||||
}
|
}
|
||||||
if (service === 'pdf') {
|
if (service === 'pdf') {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.54.1",
|
"version": "4.54.2",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
Reference in new issue
Block a user