Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Markdown extensions

Veauville Raphael7d3a11fb5a0c
diff --git a/dashboard/helpers/markdown/index.ts b/dashboard/helpers/markdown/index.ts
index 08a8197a..f7bddba6 100644
--- a/dashboard/helpers/markdown/index.ts
+++ b/dashboard/helpers/markdown/index.ts
@@ -2,12 +2,18 @@ import MarkdownIt from 'markdown-it';
import { containerPlugin } from './container';
import { anchorPlugin } from './anchor';
import { containerSvg } from './containers-svg';
+// @ts-ignore
+import underline from 'markdown-it-underline';
+// @ts-ignore
+import mark from 'markdown-it-mark';
import katex from 'katex';
const md = new MarkdownIt({ html: true });
md.use(containerPlugin);
md.use(anchorPlugin);
md.use(containerSvg);
+md.use(underline);
+md.use(mark);
export default function compile(str: string = '', plugins: boolean = true): string {
let render = str;
diff --git a/dashboard/package-lock.json b/dashboard/package-lock.json
index 8bc8d463..b66ab2ac 100644
--- a/dashboard/package-lock.json
+++ b/dashboard/package-lock.json
@@ -20,6 +20,8 @@
"@types/markdown-it": "^13.0.4",
"@types/markdown-it-container": "^2.0.8",
"@types/node": "^20.8.5",
+ "markdown-it-mark": "^4.0.0",
+ "markdown-it-underline": "^1.0.1",
"nuxt": "^3.8.0",
"pinia": "^2.1.6",
"punycode": "^2.3.0",
@@ -7203,6 +7205,18 @@
"resolved": "https://registry.npmjs.org/markdown-it-container/-/markdown-it-container-3.0.0.tgz",
"integrity": "sha512-y6oKTq4BB9OQuY/KLfk/O3ysFhB3IMYoIWhGJEidXt1NQFocFK2sA2t0NYZAMyMShAGL6x5OPIbrmXPIqaN9rw=="
},
+ "node_modules/markdown-it-mark": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/markdown-it-mark/-/markdown-it-mark-4.0.0.tgz",
+ "integrity": "sha512-YLhzaOsU9THO/cal0lUjfMjrqSMPjjyjChYM7oyj4DnyaXEzA8gnW6cVJeyCrCVeyesrY2PlEdUYJSPFYL4Nkg==",
+ "dev": true
+ },
+ "node_modules/markdown-it-underline": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/markdown-it-underline/-/markdown-it-underline-1.0.1.tgz",
+ "integrity": "sha512-J597ni39vPHIH1ONVZoDvQKUUXkOqoB93bm6Fc/5Deu6XaWMXrT0xf2m2r9qZCA8dncWJ5V8d5PyGkpmQuy/vg==",
+ "dev": true
+ },
"node_modules/mdn-data": {
"version": "2.0.30",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
diff --git a/dashboard/package.json b/dashboard/package.json
index 6fe78a18..9d0e3b5e 100644
--- a/dashboard/package.json
+++ b/dashboard/package.json
@@ -18,6 +18,8 @@
"@types/markdown-it": "^13.0.4",
"@types/markdown-it-container": "^2.0.8",
"@types/node": "^20.8.5",
+ "markdown-it-mark": "^4.0.0",
+ "markdown-it-underline": "^1.0.1",
"nuxt": "^3.8.0",
"pinia": "^2.1.6",
"punycode": "^2.3.0",