feat: add rendered math support with mathjax
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
---
|
||||
title: "Render Math With Mathjax"
|
||||
date: 2022-12-09T19:53:33+05:30
|
||||
draft: false
|
||||
author: "Gurusabarish"
|
||||
tags:
|
||||
- Markdown syntax
|
||||
- Mathjax
|
||||
- example
|
||||
image: /images/mathjax.png
|
||||
description: ""
|
||||
toc:
|
||||
mathjax: true
|
||||
---
|
||||
|
||||
Math equations can be rendered using [Mathjax](https://www.mathjax.org) syntax with AMS symbol support.
|
||||
|
||||
Optionally enable this on a per-page basis by adding `mathjax: true` to your frontmatter.
|
||||
|
||||
Then, use `$$ ... $$` on a line by itself to render a block equation:
|
||||
|
||||
$$ | Pr_{x \leftarrow P_{1}} [A(x) = 1] - Pr_{x \leftarrow P_{2}} [A(x) = 1] | < \text{negligible} $$
|
||||
|
||||
The raw version is:
|
||||
|
||||
```
|
||||
$$ | Pr_{x \leftarrow P_{1}} [A(x) = 1] - Pr_{x \leftarrow P_{2}} [A(x) = 1] | < \text{negligible} $$
|
||||
```
|
||||
|
||||
|
||||
Write in-line equations with `\\( ... \\)` , like \\( x^n / y \\) . It's easy!
|
||||
|
||||
```
|
||||
Write in-line equations with `\\( ... \\)` , like \\( x^n / y \\) . It's easy!
|
||||
```
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
Reference in New Issue
Block a user