././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1744279816.6899176 python_markdown_math-0.9/0000755000175100001660000000000014775714411015234 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/LICENSE0000644000175100001660000000273614775714400016247 0ustar00runnerdockerCopyright 2015-2025 Dmitry Shachnev . All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/MANIFEST.in0000644000175100001660000000015514775714400016771 0ustar00runnerdockerinclude README.md include changelog include LICENSE include test.py recursive-include test_data *.mkd *.html ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1744279816.6889176 python_markdown_math-0.9/PKG-INFO0000644000175100001660000001061414775714411016333 0ustar00runnerdockerMetadata-Version: 2.4 Name: python-markdown-math Version: 0.9 Summary: Math extension for Python-Markdown Author-email: Dmitry Shachnev License-Expression: BSD-3-Clause Project-URL: Homepage, https://github.com/mitya57/python-markdown-math Classifier: Development Status :: 5 - Production/Stable Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 Classifier: Topic :: Scientific/Engineering :: Mathematics Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: Text Processing :: Markup :: Markdown Requires-Python: >=3.9 Description-Content-Type: text/markdown License-File: LICENSE Requires-Dist: Markdown>=3.0 Dynamic: license-file [![Build Status](https://github.com/mitya57/python-markdown-math/actions/workflows/main.yml/badge.svg)][Actions] [Actions]: https://github.com/mitya57/python-markdown-math/actions Math extension for Python-Markdown ================================== This extension adds math formulas support to [Python-Markdown]. [Python-Markdown]: https://github.com/Python-Markdown/markdown Installation ------------ ### Install from PyPI ``` $ pip install python-markdown-math ``` ### Install locally Use `pip install .` to install this extension from a local Git checkout. The extension name is `mdx_math`, so you need to add that name to your list of Python-Markdown extensions. Check [Python-Markdown documentation] for details on how to load extensions. [Python-Markdown documentation]: https://python-markdown.github.io/reference/#extensions Usage ----- To use this extension, you need to include [MathJax] library in HTML files, like: ```html ``` [MathJax]: https://www.mathjax.org/ Also, you need to specify a configuration for MathJax. Please note that most of standard configurations include `tex2jax` extension, which is not needed with this code. Example of configuration for MathJax 2.x: ```html ``` If you want to use MathJax 3.x, you need to teach it to understand 2.x-style `\n

' ``` Usage from the command line: ``` $ echo "\(e^x\)" | python3 -m markdown -x mdx_math

``` [upgrading documentation]: https://docs.mathjax.org/en/latest/upgrading/v2.html#math-script-example [Arithmatex]: https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/ Math Delimiters --------------- For inline math, use `\(...\)`. For standalone math, use `$$...$$`, `\[...\]` or `\begin...\end`. The single-dollar delimiter (`$...$`) for inline math is disabled by default, but can be enabled by passing `enable_dollar_delimiter=True` in the extension configuration. If you want to use [GitLab-style delimiters] (``$`...`$`` for inline math, and a code block-like `` ```math...``` `` syntax for standalone), use `use_gitlab_delimiters=True` configuration option. If you want to this extension to generate a preview node (which will be shown when MathJax has not yet processed the node, or when JavaScript is unavailable), use `add_preview=True` configuration option. [GitLab-style delimiters]: https://docs.gitlab.com/user/markdown/#math-equations Notes ----- If you use [ReText](https://github.com/retext-project/retext), this extension is not needed as it is included by default. This extension also works with Katex. Use the following in your page ``: ```html ``` ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/README.md0000644000175100001660000000717614775714400016524 0ustar00runnerdocker[![Build Status](https://github.com/mitya57/python-markdown-math/actions/workflows/main.yml/badge.svg)][Actions] [Actions]: https://github.com/mitya57/python-markdown-math/actions Math extension for Python-Markdown ================================== This extension adds math formulas support to [Python-Markdown]. [Python-Markdown]: https://github.com/Python-Markdown/markdown Installation ------------ ### Install from PyPI ``` $ pip install python-markdown-math ``` ### Install locally Use `pip install .` to install this extension from a local Git checkout. The extension name is `mdx_math`, so you need to add that name to your list of Python-Markdown extensions. Check [Python-Markdown documentation] for details on how to load extensions. [Python-Markdown documentation]: https://python-markdown.github.io/reference/#extensions Usage ----- To use this extension, you need to include [MathJax] library in HTML files, like: ```html ``` [MathJax]: https://www.mathjax.org/ Also, you need to specify a configuration for MathJax. Please note that most of standard configurations include `tex2jax` extension, which is not needed with this code. Example of configuration for MathJax 2.x: ```html ``` If you want to use MathJax 3.x, you need to teach it to understand 2.x-style `\n

' ``` Usage from the command line: ``` $ echo "\(e^x\)" | python3 -m markdown -x mdx_math

``` [upgrading documentation]: https://docs.mathjax.org/en/latest/upgrading/v2.html#math-script-example [Arithmatex]: https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/ Math Delimiters --------------- For inline math, use `\(...\)`. For standalone math, use `$$...$$`, `\[...\]` or `\begin...\end`. The single-dollar delimiter (`$...$`) for inline math is disabled by default, but can be enabled by passing `enable_dollar_delimiter=True` in the extension configuration. If you want to use [GitLab-style delimiters] (``$`...`$`` for inline math, and a code block-like `` ```math...``` `` syntax for standalone), use `use_gitlab_delimiters=True` configuration option. If you want to this extension to generate a preview node (which will be shown when MathJax has not yet processed the node, or when JavaScript is unavailable), use `add_preview=True` configuration option. [GitLab-style delimiters]: https://docs.gitlab.com/user/markdown/#math-equations Notes ----- If you use [ReText](https://github.com/retext-project/retext), this extension is not needed as it is included by default. This extension also works with Katex. Use the following in your page ``: ```html ``` ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/changelog0000644000175100001660000000345614775714400017114 0ustar00runnerdockerVersion 0.9, 2025-04-10 ======================= * Fixed handling of begin/end inside inline math. - Thanks to Tianxiang Xia for the bug report. * Modernized packaging. * Python ≥ 3.9 and setuptools ≥ 77.0 are now required. Version 0.8, 2020-11-03 ======================= * GitLab-style math blocks are now supported in nested environments such as lists. - Thanks to Ran Shaham for the contribution. * Tests now pass with Python-Markdown 3.3. Version 0.7, 2020-06-19 ======================= * This extension now requires Python ≥ 3.4 and Python-Markdown ≥ 3.0. * Fixed deprecation warnings with Python-Markdown 3.x. * Added support for GitLab-style delimiters. Version 0.6, 2018-06-13 ======================= * Include LICENSE and tests in the tarball. Version 0.5, 2018-05-03 ======================= * Re-upload with fixed metadata and description. Version 0.4, 2018-05-03 ======================= * Added AsciiMath support. To switch from LaTeX syntax to AsciiMath, set the “use_asciimath” configuration option to true. * The dollar sign can now be escaped when the “enable_dollar_delimiter” option is enabled (\$ produces $). * Inline math can now be used inside standalone math. Version 0.3, 2017-03-24 ======================= * Added “add_preview” configuration option, which adds preview nodes as recognized by MathJax before every script node. - Thanks to Antoine Amarilli and Danni Randeris for their initial work. * Added a test suite. * Documentation improvements. Version 0.2, 2015-12-05 ======================= * Fix compatibility with earlier Python-Markdown versions. - Thanks to Bryan A. Jones for the contribution. * Add installation instructions from PyPI. - Thanks to Drew Hubl for the contribution. Version 0.1, 2015-08-12 ======================= * Initial release. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/mdx_math.py0000644000175100001660000001307314775714400017411 0ustar00runnerdocker''' Math extension for Python-Markdown ================================== Adds support for displaying math formulas using [MathJax](http://www.mathjax.org/). Author: 2015-2025, Dmitry Shachnev . ''' from xml.etree.ElementTree import Element from markdown.inlinepatterns import InlineProcessor from markdown.extensions import Extension from markdown.preprocessors import Preprocessor from markdown.util import AtomicString def _wrap_node(node, preview_text, wrapper_tag): preview = Element('span', {'class': 'MathJax_Preview'}) preview.text = AtomicString(preview_text) wrapper = Element(wrapper_tag) wrapper.extend([preview, node]) return wrapper class InlineMathPattern(InlineProcessor): def handleMatch(self, m, data): node = Element('script') node.set('type', self._content_type) node.text = AtomicString(m.group(2)) if self._add_preview: node = _wrap_node(node, m.group(0), 'span') return node, m.start(0), m.end(0) class DisplayMathPattern(InlineProcessor): def handleMatch(self, m, data): node = Element('script') node.set('type', '%s; mode=display' % self._content_type) if '\\begin' in m.group(1): node.text = AtomicString(m.group(0)) else: node.text = AtomicString(m.group(2)) if self._add_preview: node = _wrap_node(node, m.group(0), 'div') return node, m.start(0), m.end(0) class GitLabPreprocessor(Preprocessor): """ Preprocessor for GitLab-style standalone syntax: ```math math goes here ``` """ def run(self, lines): inside_math_block = False math_block_start = None math_blocks = [] for line_number, line in enumerate(lines): if line.strip() == '```math' and not inside_math_block: math_block_start = line_number inside_math_block = True if line.strip() == '```' and inside_math_block: math_blocks.append((math_block_start, line_number)) inside_math_block = False for math_block_start, math_block_end in reversed(math_blocks): math_lines = lines[math_block_start + 1:math_block_end] math_content = '\n'.join(math_lines) html = '\n' html %= (self._content_type, math_content) placeholder = self.md.htmlStash.store(html) lines[math_block_start:math_block_end + 1] = [placeholder] return lines class MathExtension(Extension): def __init__(self, *args, **kwargs): self.config = { 'enable_dollar_delimiter': [False, 'Enable single-dollar delimiter'], 'add_preview': [False, 'Add a preview node before each math node'], 'use_asciimath': [False, 'Use AsciiMath syntax instead of TeX syntax'], 'use_gitlab_delimiters': [False, 'Use GitLab-style $`...`$ delimiters'], } super().__init__(*args, **kwargs) def extendMarkdown(self, md): add_preview = self.getConfig('add_preview') use_asciimath = self.getConfig('use_asciimath') use_gitlab_delimiters = self.getConfig('use_gitlab_delimiters') content_type = 'math/asciimath' if use_asciimath else 'math/tex' inlinemathpatterns = ( InlineMathPattern(r'(?=77.0"] build-backend = "setuptools.build_meta" [project] name = "python-markdown-math" version = "0.9" description = "Math extension for Python-Markdown" readme = { file = "README.md", content-type = "text/markdown" } authors = [{ name = "Dmitry Shachnev", email = "mitya57@gmail.com" }] license = "BSD-3-Clause" requires-python = ">=3.9" dependencies = ["Markdown>=3.0"] classifiers = [ "Development Status :: 5 - Production/Stable", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Mathematics", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: Markdown", ] [project.entry-points."markdown.extensions"] mdx_math = "mdx_math:MathExtension" [project.urls] Homepage = "https://github.com/mitya57/python-markdown-math" [tool.setuptools] py-modules = ["mdx_math"] include-package-data = false ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1744279816.6889176 python_markdown_math-0.9/python_markdown_math.egg-info/0000755000175100001660000000000014775714411023162 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279816.0 python_markdown_math-0.9/python_markdown_math.egg-info/PKG-INFO0000644000175100001660000001061414775714410024260 0ustar00runnerdockerMetadata-Version: 2.4 Name: python-markdown-math Version: 0.9 Summary: Math extension for Python-Markdown Author-email: Dmitry Shachnev License-Expression: BSD-3-Clause Project-URL: Homepage, https://github.com/mitya57/python-markdown-math Classifier: Development Status :: 5 - Production/Stable Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 3 Classifier: Topic :: Scientific/Engineering :: Mathematics Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: Text Processing :: Markup :: Markdown Requires-Python: >=3.9 Description-Content-Type: text/markdown License-File: LICENSE Requires-Dist: Markdown>=3.0 Dynamic: license-file [![Build Status](https://github.com/mitya57/python-markdown-math/actions/workflows/main.yml/badge.svg)][Actions] [Actions]: https://github.com/mitya57/python-markdown-math/actions Math extension for Python-Markdown ================================== This extension adds math formulas support to [Python-Markdown]. [Python-Markdown]: https://github.com/Python-Markdown/markdown Installation ------------ ### Install from PyPI ``` $ pip install python-markdown-math ``` ### Install locally Use `pip install .` to install this extension from a local Git checkout. The extension name is `mdx_math`, so you need to add that name to your list of Python-Markdown extensions. Check [Python-Markdown documentation] for details on how to load extensions. [Python-Markdown documentation]: https://python-markdown.github.io/reference/#extensions Usage ----- To use this extension, you need to include [MathJax] library in HTML files, like: ```html ``` [MathJax]: https://www.mathjax.org/ Also, you need to specify a configuration for MathJax. Please note that most of standard configurations include `tex2jax` extension, which is not needed with this code. Example of configuration for MathJax 2.x: ```html ``` If you want to use MathJax 3.x, you need to teach it to understand 2.x-style `\n

' ``` Usage from the command line: ``` $ echo "\(e^x\)" | python3 -m markdown -x mdx_math

``` [upgrading documentation]: https://docs.mathjax.org/en/latest/upgrading/v2.html#math-script-example [Arithmatex]: https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/ Math Delimiters --------------- For inline math, use `\(...\)`. For standalone math, use `$$...$$`, `\[...\]` or `\begin...\end`. The single-dollar delimiter (`$...$`) for inline math is disabled by default, but can be enabled by passing `enable_dollar_delimiter=True` in the extension configuration. If you want to use [GitLab-style delimiters] (``$`...`$`` for inline math, and a code block-like `` ```math...``` `` syntax for standalone), use `use_gitlab_delimiters=True` configuration option. If you want to this extension to generate a preview node (which will be shown when MathJax has not yet processed the node, or when JavaScript is unavailable), use `add_preview=True` configuration option. [GitLab-style delimiters]: https://docs.gitlab.com/user/markdown/#math-equations Notes ----- If you use [ReText](https://github.com/retext-project/retext), this extension is not needed as it is included by default. This extension also works with Katex. Use the following in your page ``: ```html ``` ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279816.0 python_markdown_math-0.9/python_markdown_math.egg-info/SOURCES.txt0000644000175100001660000000264614775714410025055 0ustar00runnerdockerLICENSE MANIFEST.in README.md changelog mdx_math.py pyproject.toml test.py python_markdown_math.egg-info/PKG-INFO python_markdown_math.egg-info/SOURCES.txt python_markdown_math.egg-info/dependency_links.txt python_markdown_math.egg-info/entry_points.txt python_markdown_math.egg-info/requires.txt python_markdown_math.egg-info/top_level.txt test_data/beginend.html test_data/beginend.mkd test_data/beginend_inside_inline.html test_data/beginend_inside_inline.mkd test_data/beginend_inside_standalone.html test_data/beginend_inside_standalone.mkd test_data/beginend_preview.html test_data/inline.html test_data/inline_asciimath.html test_data/inline_asciimath.mkd test_data/inline_gitlab.mkd test_data/inline_inside_standalone.html test_data/inline_inside_standalone.mkd test_data/inline_latex.mkd test_data/inline_latex_escaped.html test_data/inline_latex_escaped.mkd test_data/inline_latex_inside_code.html test_data/inline_latex_inside_code.mkd test_data/inline_preview.html test_data/inline_tex.mkd test_data/inline_tex_disabled.html test_data/inline_tex_escaped.html test_data/inline_tex_escaped.mkd test_data/standalone.html test_data/standalone_gitlab.html test_data/standalone_gitlab.mkd test_data/standalone_gitlab_nested.html test_data/standalone_gitlab_nested.mkd test_data/standalone_latex.mkd test_data/standalone_latex_escaped.html test_data/standalone_latex_escaped.mkd test_data/standalone_preview.html test_data/standalone_tex.mkd././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279816.0 python_markdown_math-0.9/python_markdown_math.egg-info/dependency_links.txt0000644000175100001660000000000114775714410027227 0ustar00runnerdocker ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279816.0 python_markdown_math-0.9/python_markdown_math.egg-info/entry_points.txt0000644000175100001660000000007014775714410026454 0ustar00runnerdocker[markdown.extensions] mdx_math = mdx_math:MathExtension ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279816.0 python_markdown_math-0.9/python_markdown_math.egg-info/requires.txt0000644000175100001660000000001614775714410025556 0ustar00runnerdockerMarkdown>=3.0 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279816.0 python_markdown_math-0.9/python_markdown_math.egg-info/top_level.txt0000644000175100001660000000001114775714410025703 0ustar00runnerdockermdx_math ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1744279816.6899176 python_markdown_math-0.9/setup.cfg0000644000175100001660000000004614775714411017055 0ustar00runnerdocker[egg_info] tag_build = tag_date = 0 ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test.py0000755000175100001660000000454414775714400016575 0ustar00runnerdocker#!/usr/bin/env python3 from markdown import Markdown import unittest class MathTestCase(unittest.TestCase): def verify(self, mkd_name, html_name, config=None): config = config or dict() md = Markdown(extensions=['mdx_math'], extension_configs={'mdx_math': config}) with open('test_data/%s.mkd' % mkd_name) as mkd_file: mkd = mkd_file.read() with open('test_data/%s.html' % html_name) as html_file: html = html_file.read() self.assertEqual(html, md.convert(mkd) + '\n') def r(mkd_name, html_name, **config): return lambda self: self.verify(mkd_name, html_name, config=config) test_inline_latex = r('inline_latex', 'inline') test_inline_latex_escaped = r('inline_latex_escaped', 'inline_latex_escaped') test_inline_latex_preview = r('inline_latex', 'inline_preview', add_preview=True) test_inline_tex = r('inline_tex', 'inline', enable_dollar_delimiter=True) test_inline_tex_disabled = r('inline_tex', 'inline_tex_disabled') test_inline_tex_escaped = r('inline_tex_escaped', 'inline_tex_escaped', enable_dollar_delimiter=True) test_inline_inside_code = r('inline_latex_inside_code', 'inline_latex_inside_code') test_inline_inside_standalone = r('inline_inside_standalone', 'inline_inside_standalone') test_inline_gitlab = r('inline_gitlab', 'inline', use_gitlab_delimiters=True) test_standalone_latex = r('standalone_latex', 'standalone') test_standalone_latex_escaped = r('standalone_latex_escaped', 'standalone_latex_escaped') test_standalone_latex_preview = r('standalone_latex', 'standalone_preview', add_preview=True) test_standalone_tex = r('standalone_tex', 'standalone') test_standalone_gitlab = r('standalone_gitlab', 'standalone_gitlab', use_gitlab_delimiters=True) test_standalone_gitlab_nested = r('standalone_gitlab_nested', 'standalone_gitlab_nested', use_gitlab_delimiters=True) test_begin_end = r('beginend', 'beginend') test_begin_end_preview = r('beginend', 'beginend_preview', add_preview=True) test_begin_end_inside_inline = r('beginend_inside_inline', 'beginend_inside_inline') test_begin_end_inside_standalone = r('beginend_inside_standalone', 'beginend_inside_standalone') test_inline_asciimath = r('inline_asciimath', 'inline_asciimath', use_asciimath=True) if __name__ == '__main__': unittest.main(verbosity=2) ././@PaxHeader0000000000000000000000000000003400000000000010212 xustar0028 mtime=1744279816.6889176 python_markdown_math-0.9/test_data/0000755000175100001660000000000014775714411017204 5ustar00runnerdocker././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/beginend.html0000644000175100001660000000021414775714400021640 0ustar00runnerdocker

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/beginend.mkd0000644000175100001660000000012414775714400021447 0ustar00runnerdocker\begin{equation*} \begin{pmatrix} 1 & 0\\ 0 & 1 \end{pmatrix} \end{equation*} ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/beginend_inside_inline.html0000644000175100001660000000016214775714400024533 0ustar00runnerdocker

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/beginend_inside_inline.mkd0000644000175100001660000000011414775714400024337 0ustar00runnerdocker\( T(v) = \begin{bmatrix}\alpha & \beta \\ \gamma & \delta \end{bmatrix} \) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/beginend_inside_standalone.html0000644000175100001660000000023714775714400025410 0ustar00runnerdocker

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/beginend_inside_standalone.mkd0000644000175100001660000000015314775714400025214 0ustar00runnerdocker$$ s(x) = \begin{cases} 1 & \text{if } x > 0\\ 0 & \text{if } x = 0\\ -1 & \text{if } x < 0 \end{cases} $$ ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/beginend_preview.html0000644000175100001660000000043014775714400023401 0ustar00runnerdocker

\begin{equation*} \begin{pmatrix} 1 & 0\\ 0 & 1 \end{pmatrix} \end{equation*}

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline.html0000644000175100001660000000010414775714400021341 0ustar00runnerdocker

Inline math: .

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_asciimath.html0000644000175100001660000000012114775714400023362 0ustar00runnerdocker

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_asciimath.mkd0000644000175100001660000000004514775714400023176 0ustar00runnerdocker\( sum_(i=1)^n i^3=((n(n+1))/2)^2 \) ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_gitlab.mkd0000644000175100001660000000004014775714400022471 0ustar00runnerdockerInline math: $`e^{i \varphi}`$. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_inside_standalone.html0000644000175100001660000000014014775714400025104 0ustar00runnerdocker

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_inside_standalone.mkd0000644000175100001660000000005414775714400024717 0ustar00runnerdocker\[ \sqrt{\text{ number of \(B\)-words }} \] ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_latex.mkd0000644000175100001660000000004014775714400022344 0ustar00runnerdockerInline math: \(e^{i \varphi}\). ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_latex_escaped.html0000644000175100001660000000004714775714400024230 0ustar00runnerdocker

Inline math: \(e^{i \varphi}\).

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_latex_escaped.mkd0000644000175100001660000000004214775714400024032 0ustar00runnerdockerInline math: \\(e^{i \varphi}\\). ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_latex_inside_code.html0000644000175100001660000000004614775714400025070 0ustar00runnerdocker

\(e^{i \varphi}\)

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_latex_inside_code.mkd0000644000175100001660000000002414775714400024673 0ustar00runnerdocker`\(e^{i \varphi}\)` ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_preview.html0000644000175100001660000000020714775714400023106 0ustar00runnerdocker

Inline math: \(e^{i \varphi}\).

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_tex.mkd0000644000175100001660000000003614775714400022034 0ustar00runnerdockerInline math: $e^{i \varphi}$. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_tex_disabled.html0000644000175100001660000000004514775714400024054 0ustar00runnerdocker

Inline math: $e^{i \varphi}$.

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_tex_escaped.html0000644000175100001660000000011514775714400023707 0ustar00runnerdocker

Escaped $ dollar sign and real .

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/inline_tex_escaped.mkd0000644000175100001660000000005014775714400023514 0ustar00runnerdockerEscaped \$ dollar sign and real $math$. ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/standalone.html0000644000175100001660000000015214775714400022216 0ustar00runnerdocker

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/standalone_gitlab.html0000644000175100001660000000025714775714400023546 0ustar00runnerdocker ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/standalone_gitlab.mkd0000644000175100001660000000014514775714400023351 0ustar00runnerdocker```math e^{i \varphi} = \cos \varphi + i \sin \varphi ``` ```math \text{one more math block} ``` ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/standalone_gitlab_nested.html0000644000175100001660000000020114775714400025075 0ustar00runnerdocker
  • in list:
././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/standalone_gitlab_nested.mkd0000644000175100001660000000012214775714400024706 0ustar00runnerdocker- in list: ```math e^{i \varphi} = \cos \varphi + i \sin \varphi ``` ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/standalone_latex.mkd0000644000175100001660000000006614775714400023226 0ustar00runnerdocker\[ e^{i \varphi} = \cos \varphi + i \sin \varphi \] ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/standalone_latex_escaped.html0000644000175100001660000000007514775714400025103 0ustar00runnerdocker

\[ e^{i \varphi} = \cos \varphi + i \sin \varphi \]

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/standalone_latex_escaped.mkd0000644000175100001660000000007014775714400024705 0ustar00runnerdocker\\[ e^{i \varphi} = \cos \varphi + i \sin \varphi \\] ././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/standalone_preview.html0000644000175100001660000000032014775714400023754 0ustar00runnerdocker

\[ e^{i \varphi} = \cos \varphi + i \sin \varphi \]

././@PaxHeader0000000000000000000000000000002600000000000010213 xustar0022 mtime=1744279808.0 python_markdown_math-0.9/test_data/standalone_tex.mkd0000644000175100001660000000006614775714400022711 0ustar00runnerdocker$$ e^{i \varphi} = \cos \varphi + i \sin \varphi $$