Skip to main content

An mdformat plugin for...

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.3.tar.gz (3.5 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.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mdformat_dollarmath-0.0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for mdformat_dollarmath-0.0.3.tar.gz
Algorithm Hash digest
SHA256 5d25e183ca396e0de04540e4f8b6782ced406334db7b7416741f1dc06c8a81ee
MD5 d941f29fc2dbc89eab1a5088930f1971
BLAKE2b-256 3f7f59416efbc56ad38325954ddb87087c04845311aac8feec89f0496e372c4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mdformat_dollarmath-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 870a8105fcd58ef0e49de42369275c375b559b3a769033959b98bb0eadc81ba8
MD5 468858d37a2e193a1cf5271ca8cd9241
BLAKE2b-256 667649151b6f5cca50b8e875df026ff26cafcb268f7b3d358908decf125b0d35

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