📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
re-add html5MediaPlugin
Smaug6739e8b0f2c4a559
diff --git a/frontend/app/helpers/markdown/index.ts b/frontend/app/helpers/markdown/index.tsindex 0cf08953..9b911bce 100644--- a/frontend/app/helpers/markdown/index.ts+++ b/frontend/app/helpers/markdown/index.ts@@ -7,11 +7,10 @@ import { advancedBlocks } from './cards';// @ts-expect-error no types providedimport underline from 'markdown-it-underline';import highlight from 'markdown-it-highlightjs';-//import html5Media from 'markdown-it-html5-media'; // Doesn't work, always not found// @ts-expect-error no types providedimport mark from 'markdown-it-mark';import colorPlugin from './colors';-import { subscriptPlugin, superscriptPlugin, footNotePlugin } from './other';+import { subscriptPlugin, superscriptPlugin, footNotePlugin, html5MediaPlugin } from './other';import { markdownItCheckbox } from './checkbox';import { markdownItKatexPlugin } from './katex';@@ -33,8 +32,8 @@ md.use(colorPlugin, {enableBracketSyntax: true, // also parse [text]{color=value}allowHex: true, // allow #rgb and #rrggbb});+md.use(html5MediaPlugin);-// Définir une règle de rendu pour injecter les cases à cocherexport default function compile(str: string = ''): string {// Replace < > & to < > & (to avoid markdown-it escape)str = str.replace(/</g, '<').replace(/>/g, '>').replace(/&/g, '&');