From df22eafd3183fb66acf650387d0e764310a6f443 Mon Sep 17 00:00:00 2001 From: Phyo Htet Arkar Date: Sun, 30 Jun 2024 15:00:47 +0630 Subject: [PATCH] add content example --- apps/web/lib/content.ts | 105 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/apps/web/lib/content.ts b/apps/web/lib/content.ts index 859b62c0..3ed5da61 100644 --- a/apps/web/lib/content.ts +++ b/apps/web/lib/content.ts @@ -149,6 +149,111 @@ export const defaultEditorContent = { }, ], }, + { + type: "listItem", + content: [ + { + type: "paragraph", + content: [ + { + type: "text", + text: "Mathematical symbols with LaTeX expression:", + }, + ], + }, + { + type: "orderedList", + attrs: { + tight: true, + start: 1, + }, + content: [ + { + type: "listItem", + content: [ + { + type: "paragraph", + content: [ + { + type: "math", + attrs: { + latex: "E = mc^2", + }, + }, + ], + }, + ], + }, + { + type: "listItem", + content: [ + { + type: "paragraph", + content: [ + { + type: "math", + attrs: { + latex: "a^2 = \\sqrt{b^2 + c^2}", + }, + }, + ], + }, + ], + }, + { + type: "listItem", + content: [ + { + type: "paragraph", + content: [ + { + type: "math", + attrs: { + latex: + "\\hat{f} (\\xi)=\\int_{-\\infty}^{\\infty}f(x)e^{-2\\pi ix\\xi}dx", + }, + }, + ], + }, + ], + }, + { + type: "listItem", + content: [ + { + type: "paragraph", + content: [ + { + type: "math", + attrs: { + latex: + "A=\\begin{bmatrix}a&b\\\\c&d \\end{bmatrix}", + }, + }, + ], + }, + ], + }, + { + type: "listItem", + content: [ + { + type: "paragraph", + content: [ + { + type: "math", + attrs: { + latex: "\\sum_{i=0}^n x_i", + }, + }, + ], + }, + ], + }, + ], + }, + ], + }, ], }, {