Skip to main content

An mdformat plugin for formatting dollarmath.

Project description

mdformat-dollarmath

Build Status codecov.io PyPI version

An 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

Given $$x^2 + y^2 = 9$$ What is the radius of the circle?
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.

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

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

Find $x$ and $y$.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mdformat_dollarmath-0.0.5.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdformat_dollarmath-0.0.5-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file mdformat_dollarmath-0.0.5.tar.gz.

File metadata

  • Download URL: mdformat_dollarmath-0.0.5.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for mdformat_dollarmath-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1f844e730e70f7cee2334105173b593e92a84440f7bf86e7537e83e0c37070c3
MD5 4b58c6312aaea93298aaa942bc588f78
BLAKE2b-256 1d54cdb29149645d7d9cb28a3a58944f2d54952dc1645b274a79d3c65b2e9b66

See more details on using hashes here.

File details

Details for the file mdformat_dollarmath-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mdformat_dollarmath-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6dd5f4c07ecceb89b192bfe1d3e6c6049d6b9a463f80617d313690491aea1db3
MD5 78365360ae26543a6d1c46bebd172950
BLAKE2b-256 6a3f5019bdff6000987315ee2e4f54851f79b1ed125eb1bb2402af181759d766

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page