Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
204 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"nextra": patch | ||
--- | ||
|
||
Add LaTeX support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# LaTeX | ||
|
||
Nextra uses [KaTeX](https://katex.org/) to render LaTeX expressions directly in MDX. | ||
To enable LaTeX support, you must add the following to your `next.config.js`: | ||
|
||
```js filename="next.config.js" | ||
module.exports = require('nextra')({ | ||
latex: true, | ||
}) | ||
``` | ||
|
||
Using LaTeX within MDX is as simple as wrapping your expression in `$$` or `$`. For example, the following code | ||
```latex | ||
$\sqrt{a^2 + b^2}$ | ||
``` | ||
will be rendered as: $\sqrt{a^2 + b^2}$ | ||
|
||
To learn more about KaTeX and its supported functions, visit their [documentation](https://katex.org/docs/supported.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1e2afcf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nextra-v2 – ./docs
nextra.vercel.app
nextra-v2-shuding1.vercel.app
nextra.site
nextra-v2-git-main-shuding1.vercel.app
nextra-v2.vercel.app
www.nextra.site