Metadata-Version: 2.4
Name: mdformat_dollarmath
Version: 0.0.1
Summary: An mdformat plugin for...
Keywords: mdformat,markdown,markdown-it
Author-email: Livin Nector <livinnector2001@gmail.com>
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
License-File: LICENSE
Requires-Dist: mdformat >=0.7.0,<0.8.0
Requires-Dist: mdit-py-plugins>=0.3.5
Requires-Dist: pre-commit ; extra == "dev"
Requires-Dist: pytest~=6.0 ; extra == "test"
Requires-Dist: coverage ; extra == "test"
Requires-Dist: pytest-cov ; extra == "test"
Project-URL: Homepage, https://github.com/livinNector/mdformat-dollarmath
Provides-Extra: dev
Provides-Extra: test

# mdformat-dollarmath

[![Build Status][ci-badge]][ci-link]
[![codecov.io][cov-badge]][cov-link]
[![PyPI version][pypi-badge]][pypi-link]

An [mdformat](https://github.com/executablebooks/mdformat) plugin for  dollarmath support for gfm like markdown.

This converts inline double dollar math to block double dollar and converts amsmath blocks to dollarmath blocks.

To enhance support for math renderers converts `align` environment to `aligned` environment.

## Examples

### Double Inline to block math

```markdown
Given $$x^2 + y^2 = 9$$ What is the radius of the circle?
```

```markdown
Given

$$
x^2 + y^2 = 9
$$

What is the radius of the circle?
```

### Amsmath to block math

```markdown
Given
\begin{gather*}
a = 5 & b = 6 & c =7 \\
e = 8 & f = 8 & g = 9
\end{gather*}
Find $a+b+c+d+e+f+g$.
```

```markdown
Given

$$
\begin{gather*}
a = 5 & b = 6 & c =7 \\
e = 8 & f = 8 & g = 9
\end{gather*}
$$

Find $a+b+c+d+e+f+g$.
```

### `align` to `aligned`

```markdown
Consider the following equations
\begin{align}
3x+4y &= 5 \\
5x-3y &= 8
\end{align}
Find $x$ and $y$.
```

```markdown
Consider the following equations

$$
\begin{aligned}
3x+4y &= 5 \\
5x-3y &= 8
\end{aligned}
$$

Find $x$ and $y$.
```

[ci-badge]: https://github.com/executablebooks/mdformat-dollarmath/workflows/CI/badge.svg?branch=master
[ci-link]: https://github.com/executablebooks/mdformat/actions?query=workflow%3ACI+branch%3Amaster+event%3Apush
[cov-badge]: https://codecov.io/gh/executablebooks/mdformat-dollarmath/branch/master/graph/badge.svg
[cov-link]: https://codecov.io/gh/executablebooks/mdformat-dollarmath
[pypi-badge]: https://img.shields.io/pypi/v/mdformat-dollarmath.svg
[pypi-link]: https://pypi.org/project/mdformat-dollarmath

