|
7 | 7 | slug: "the-content-editor" |
8 | 8 | description: "Learn how the Outstatic Content Editor works." |
9 | 9 | coverImage: "" |
10 | | -publishedAt: "2024-11-06T03:00:00.000Z" |
| 10 | +publishedAt: "2024-11-16T03:00:00.000Z" |
11 | 11 | --- |
12 | 12 |
|
13 | 13 | The content editor is the main tool used for editing documents. It's where you'll be writing your content, adding links, images, etc… |
@@ -62,12 +62,30 @@ Outstatic's AI-powered completions offers you an effortless writing experience b |
62 | 62 |
|
63 | 63 | ## Mathematical Expressions |
64 | 64 |
|
65 | | -Outstatic supports math expressions using LaTeX format. You can add them to your Markdown by clicking the Σ icon in the formatting menu. For more details, see GitHub’s [Writing Mathematical Expressions](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions) guide.\ |
| 65 | +Outstatic supports math expressions using LaTeX format. Example: |
| 66 | + |
| 67 | +$E=mc^2$ |
| 68 | + |
| 69 | +You can add them to your Markdown by clicking the Σ icon in the formatting menu. For more details, see GitHub’s [Writing Mathematical Expressions](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions) guide. |
| 70 | + |
66 | 71 | Please note that only inline expressions are currently supported—block expressions are not yet available. |
67 | 72 |
|
68 | | -To render LaTeX in your frontend you will need to install the packages needed for your framewor. You can use [remark-math](https://www.npmjs.com/package/remark-math) and [rehype-katex](https://www.npmjs.com/package/rehype-katex). |
| 73 | +To render LaTeX in your frontend you will need to install the packages needed for your framework. You can use [katex](https://www.npmjs.com/package/katex), [remark-math](https://www.npmjs.com/package/remark-math) and [rehype-katex](https://www.npmjs.com/package/rehype-katex). |
| 74 | + |
| 75 | +Here's a small example for Next.js: |
| 76 | + |
| 77 | +```bash |
| 78 | +pnpm i katex remark-math rehype-katex |
| 79 | +``` |
| 80 | + |
| 81 | +In your `layout.tsx` files add: |
| 82 | + |
| 83 | +```javascript |
| 84 | + |
| 85 | +import "katex/dist/katex.min.css"; |
| 86 | +``` |
69 | 87 |
|
70 | | -Here's a small example with `mdx-bundler` |
| 88 | +And in your `mdx-bundler`: |
71 | 89 |
|
72 | 90 | ```typescript |
73 | 91 | import { bundleMDX } from 'mdx-bundler' |
|
0 commit comments