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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mdformat_dollarmath-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f055dac81f15388b1641534733d7c15cee1c70367f824cd75530bcc5c5d104b0
MD5 fa3143b1361e8fb259baae635652ee12
BLAKE2b-256 2d4bb0c07188ce5ae99e2eba7c2e503e211df865eab513278cb2f0df29a2a6fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mdformat_dollarmath-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ccf0b168e5e0abccd44affe0a544ca021bed8db2de183bee572bd3a97da21340
MD5 416e8851071e908af697724b72898c82
BLAKE2b-256 d19a0527daece1883e8fd7c9c088c96346b0d12698e8f1c8e15a0cc6826c6c42

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