Metadata-Version: 2.4
Name: mdformat_dollarmath
Version: 0.0.4
Summary: An mdformat plugin for formatting dollarmath.
Keywords: mdformat,markdown,markdown-it
Author-email: Livin Nector <livinnector2001@gmail.com>
Requires-Python: >=3.8
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 ; 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 to dollarmath blocks.

To enhance support for math renderers, converts `align` environment to `aligned` environment upon specifying an environment variable.

## 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?
```

### `align` to `aligned`

Converts `align` and `align*`  to `aligned` upon seting the environment variable `MDFORMAT_DOLLARMATH_USE_ALIGNED=1`.

```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

