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.

Remove old syntax

Smaug67395c5a7938f64b
diff --git a/frontend/app/helpers/markdown/containers-svg.ts b/frontend/app/helpers/markdown/containers-svg.ts
index 73dfd05e..0d0b73bc 100644
--- a/frontend/app/helpers/markdown/containers-svg.ts
+++ b/frontend/app/helpers/markdown/containers-svg.ts
@@ -68,19 +68,4 @@ export const containerSvg = (md: MarkdownIt) => {
}
},
});
- md.use(container, 'info-', {
- validate: function (params: any) {
- return params.trim().match(/^info-(.*)+$/);
- },
- render: function (tokens: any, idx: any) {
- const m = tokens[idx].info.trim().split(' ');
- if (tokens[idx].nesting === 1) {
- // opening tag
- return containerOpen(m.slice(1).join(' '), svg_info, m[0]?.split('-')[1]);
- } else {
- // closing tag
- return '</div></div>\n';
- }
- },
- });
};