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.2.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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mdformat_dollarmath-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 5515cb50cd3b5c612f2819ba32f6d5142f43707a59fbfec3d1b37aa81fa0671a
MD5 5c9aa6d4e92413eae0d0d2971e4ebbec
BLAKE2b-256 d27814cdf751c5369bc79136462a3cf290d9a8120997b350f14e15fe1e716398

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mdformat_dollarmath-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2b5b0eff055bfe35b988ac3678c7203a972110bf8587b29d7b91aaaf84249805
MD5 b7e4563911b973c24df5e99605d46ab4
BLAKE2b-256 c6d8de3cb3da12eac56c2ecbeeeee8cacd4769a1eb6fcbe952a9d8825e79e718

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