mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: fix markdown render
This commit is contained in:
3 files changed
+8
-3
No files matched your search
@@ -93,8 +93,8 @@ export function Media(md: MarkdownIt) {
|
||||
md.renderer.rules.video = function tokenizeReturn(tokens, idx) {
|
||||
let src = md.utils.escapeHtml(tokens[idx].attrGet('src'));
|
||||
const service = md.utils.escapeHtml(tokens[idx].attrGet('service')).toLowerCase();
|
||||
if (Hydro.module.richmedia?.[service]) {
|
||||
const result = Hydro.module.richmedia[service].get(service, src, md);
|
||||
if (Hydro?.module?.richmedia?.[service]) {
|
||||
const result = Hydro?.module?.richmedia[service].get(service, src, md);
|
||||
if (result) return result;
|
||||
}
|
||||
if (service === 'pdf') {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.54.1",
|
||||
"version": "4.54.2",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "index.ts",
|
||||
|
||||
Reference in new issue
Block a user