fixes in css
This commit is contained in:
@@ -50,7 +50,14 @@ export function applyFormat(editor, format) {
|
||||
if (format === "subscript") toggleWrap(editor, "~", "~", "2");
|
||||
if (format === "superscript") toggleWrap(editor, "^", "^", "2");
|
||||
if (format === "codeblock") toggleWrap(editor, "```text\n", "\n```", "code");
|
||||
if (format === "codeblock-lines") toggleWrap(editor, "```text=\n", "\n```", "code");
|
||||
if (format === "mermaid") toggleWrap(editor, "```mermaid\n", "\n```", "graph TD\n A[Start] --> B[End]");
|
||||
if (format === "details") toggleWrap(editor, "<details>\n<summary>Click me</summary>\n\n", "\n</details>", "Content");
|
||||
if (format === "toc") toggleWrap(editor, "", "", "[TOC]");
|
||||
if (format.startsWith("alert-")) {
|
||||
const type = format.slice("alert-".length);
|
||||
toggleWrap(editor, `:::${type}\n`, "\n:::", "Alert content");
|
||||
}
|
||||
if (format === "table") toggleWrap(editor, "| Column 1 | Column 2 |\n| --- | --- |\n| ", " | value |", "value");
|
||||
if (format === "footnote") toggleWrap(editor, "", "[^1]\n\n[^1]: Footnote text", "Text with footnote");
|
||||
if (format === "definition") toggleWrap(editor, "", "\n: Definition", "Term");
|
||||
|
||||
Reference in New Issue
Block a user