iamcco / iamcco/markdown-preview.nvim

Cannot use ```math code block

Open
#528 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
There is no option to use the `math` fenced code block in the style of GitHub to render LaTeX expressions. (But I might have missed the option.)

**To Reproduce**

Write
~~~markdown
This is the Pythagorean equation
$$
a^2 + b^2 = c^2
$$
This is the Pythagorean equation
``` math
a^2 + b^2 = c^2
```
~~~
The top one renders via a LaTeX renderer, the bottom one does not.

**Expected behavior**
I would like a code block rendered with ` ```math ``` ` to be displayed with a LaTeX renderer as if it has been written surrounded by $$ $$.

**Screenshots**
![image](https://user-images.githubusercontent.com/6265489/202583551-9d97f277-284d-43fb-b2da-ab3cfec505f1.png)

**Desktop (please complete the following information):**
- OS: Ubuntu 22.04

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.