Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-markdown-math for
openSUSE:Factory checked in at 2021-06-01 10:39:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-markdown-math (Old)
and /work/SRC/openSUSE:Factory/.python-markdown-math.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-markdown-math"
Tue Jun 1 10:39:46 2021 rev:3 rq:896444 version:0.8
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-markdown-math/python-markdown-math.changes
2019-02-01 11:44:23.580617342 +0100
+++
/work/SRC/openSUSE:Factory/.python-markdown-math.new.1898/python-markdown-math.changes
2021-06-01 10:41:24.453216116 +0200
@@ -1,0 +2,17 @@
+Mon May 31 10:40:07 UTC 2021 - [email protected]
+
+- version update to 0.8
+ * 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.
+ * 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.
+
+-------------------------------------------------------------------
+Mon May 31 10:28:42 UTC 2021 - [email protected]
+
+- %check: use %pyunittest rpm macro
+
+-------------------------------------------------------------------
Old:
----
python-markdown-math-0.6.tar.gz
New:
----
python-markdown-math-0.8.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-markdown-math.spec ++++++
--- /var/tmp/diff_new_pack.BWE0rT/_old 2021-06-01 10:41:24.897216871 +0200
+++ /var/tmp/diff_new_pack.BWE0rT/_new 2021-06-01 10:41:24.901216878 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-markdown-math
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,8 +17,9 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
Name: python-markdown-math
-Version: 0.6
+Version: 0.8
Release: 0
Summary: Math extension for Python-Markdown
License: BSD-3-Clause
@@ -49,7 +50,7 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%python_exec setup.py test
+%pyunittest discover -v
%files %{python_files}
%license LICENSE
++++++ python-markdown-math-0.6.tar.gz -> python-markdown-math-0.8.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-markdown-math-0.6/PKG-INFO
new/python-markdown-math-0.8/PKG-INFO
--- old/python-markdown-math-0.6/PKG-INFO 2018-06-15 14:52:31.000000000
+0200
+++ new/python-markdown-math-0.8/PKG-INFO 2020-11-03 18:32:17.362078700
+0100
@@ -1,11 +1,11 @@
Metadata-Version: 2.1
Name: python-markdown-math
-Version: 0.6
+Version: 0.8
Summary: Math extension for Python-Markdown
Home-page: https://github.com/mitya57/python-markdown-math
Author: Dmitry Shachnev
Author-email: [email protected]
-License: BSD
+License: BSD 3-Clause License
Description: [][Travis]
[Travis]: https://travis-ci.org/mitya57/python-markdown-math
@@ -44,19 +44,17 @@
To use this extension, you need to include [MathJax] library in HTML
files, like:
```html
- <script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js">
+ <script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js">
</script>
```
- (replace `2.7.4` with the latest version if it is available).
-
[MathJax]: https://www.mathjax.org/
Also, you need to specify a configuration for MathJax. Please note that
- most of standard configuratons include `tex2jax` extension, which is
not needed
+ most of standard configurations include `tex2jax` extension, which is
not needed
with this code.
- Example of MathJax configuration:
+ Example of configuration for MathJax 2.x:
```html
<script type="text/x-mathjax-config">
@@ -68,6 +66,11 @@
</script>
```
+ If you want to use MathJax 3.x, you need to teach it to understand
2.x-style
+ `<script>` tags. See the [upgrading documentation] on how to do it.
+ Alternatively, you may use the [Arithmatex] extension which has a
generic
+ output mode, that does not require such special configuration.
+
To pass the extension to Python-Markdown, use `mdx_math` as extension
name.
For example:
@@ -86,6 +89,9 @@
</p>
```
+ [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
---------------
@@ -97,15 +103,30 @@
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://gitlab.com/gitlab-org/gitlab/blob/master/doc/user/markdown.md#math
+
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
`<head>`:
+
+ ```html
+ <link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css"
crossorigin="anonymous">
+ <script src="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js"
crossorigin="anonymous"></script>
+ <script
src="https://cdn.jsdelivr.net/npm/katex/dist/contrib/mathtex-script-type.min.js"
defer></script>
+ ```
+
Platform: UNKNOWN
+Requires-Python: >=3.6
Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-markdown-math-0.6/README.md
new/python-markdown-math-0.8/README.md
--- old/python-markdown-math-0.6/README.md 2018-05-03 15:41:54.000000000
+0200
+++ new/python-markdown-math-0.8/README.md 2020-06-09 12:26:07.000000000
+0200
@@ -36,19 +36,17 @@
To use this extension, you need to include [MathJax] library in HTML files,
like:
```html
-<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js">
+<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js">
</script>
```
-(replace `2.7.4` with the latest version if it is available).
-
[MathJax]: https://www.mathjax.org/
Also, you need to specify a configuration for MathJax. Please note that
-most of standard configuratons include `tex2jax` extension, which is not needed
+most of standard configurations include `tex2jax` extension, which is not
needed
with this code.
-Example of MathJax configuration:
+Example of configuration for MathJax 2.x:
```html
<script type="text/x-mathjax-config">
@@ -60,6 +58,11 @@
</script>
```
+If you want to use MathJax 3.x, you need to teach it to understand 2.x-style
+`<script>` tags. See the [upgrading documentation] on how to do it.
+Alternatively, you may use the [Arithmatex] extension which has a generic
+output mode, that does not require such special configuration.
+
To pass the extension to Python-Markdown, use `mdx_math` as extension name.
For example:
@@ -78,6 +81,9 @@
</p>
```
+[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
---------------
@@ -89,12 +95,26 @@
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://gitlab.com/gitlab-org/gitlab/blob/master/doc/user/markdown.md#math
+
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 `<head>`:
+
+```html
+<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css"
crossorigin="anonymous">
+<script src="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js"
crossorigin="anonymous"></script>
+<script
src="https://cdn.jsdelivr.net/npm/katex/dist/contrib/mathtex-script-type.min.js"
defer></script>
+```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-markdown-math-0.6/changelog
new/python-markdown-math-0.8/changelog
--- old/python-markdown-math-0.6/changelog 2018-06-15 14:49:36.000000000
+0200
+++ new/python-markdown-math-0.8/changelog 2020-11-03 18:12:16.000000000
+0100
@@ -1,3 +1,18 @@
+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
=======================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-markdown-math-0.6/mdx_math.py
new/python-markdown-math-0.8/mdx_math.py
--- old/python-markdown-math-0.6/mdx_math.py 2018-06-13 13:41:40.000000000
+0200
+++ new/python-markdown-math-0.8/mdx_math.py 2020-11-01 18:27:40.000000000
+0100
@@ -7,12 +7,77 @@
Adds support for displaying math formulas using
[MathJax](http://www.mathjax.org/).
-Author: 2015-2017, Dmitry Shachnev <[email protected]>.
+Author: 2015-2020, Dmitry Shachnev <[email protected]>.
'''
-from markdown.inlinepatterns import Pattern
+from xml.etree.ElementTree import Element
+from markdown.inlinepatterns import InlineProcessor
from markdown.extensions import Extension
-from markdown.util import AtomicString, etree
+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 = '<script type="%s; mode=display">\n%s\n</script>\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):
@@ -23,59 +88,55 @@
'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(MathExtension, self).__init__(*args, **kwargs)
- def _get_content_type(self):
- if self.getConfig('use_asciimath'):
- return 'math/asciimath'
- return 'math/tex'
-
- def extendMarkdown(self, md, md_globals):
- def _wrap_node(node, preview_text, wrapper_tag):
- if not self.getConfig('add_preview'):
- return node
- preview = etree.Element('span', {'class': 'MathJax_Preview'})
- preview.text = AtomicString(preview_text)
- wrapper = etree.Element(wrapper_tag)
- wrapper.extend([preview, node])
- return wrapper
-
- def handle_match_inline(m):
- node = etree.Element('script')
- node.set('type', self._get_content_type())
- node.text = AtomicString(m.group(3))
- return _wrap_node(node, ''.join(m.group(2, 3, 4)), 'span')
-
- def handle_match(m):
- node = etree.Element('script')
- node.set('type', '%s; mode=display' % self._get_content_type())
- if '\\begin' in m.group(2):
- node.text = AtomicString(''.join(m.group(2, 4, 5)))
- return _wrap_node(node, ''.join(m.group(1, 2, 4, 5, 6)), 'div')
- else:
- node.text = AtomicString(m.group(3))
- return _wrap_node(node, ''.join(m.group(2, 3, 4)), 'div')
+ 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 = (
- Pattern(r'(?<!\\|\$)(\$)([^\$]+)(\$)'), # ??$...$
- Pattern(r'(?<!\\)(\\\()(.+?)(\\\))') # \(...\)
+ InlineMathPattern(r'(?<!\\|\$)(\$)([^\$]+)(\$)'), # ??$...$
+ InlineMathPattern(r'(?<!\\)(\\\()(.+?)(\\\))') # \(...\)
)
mathpatterns = (
- Pattern(r'(?<!\\)(\$\$)([^\$]+)(\$\$)'), # $$...$$
- Pattern(r'(?<!\\)(\\\[)(.+?)(\\\])'), # \[...\]
- Pattern(r'(?<!\\)(\\begin{([a-z]+?\*?)})(.+?)(\\end{\3})')
+ DisplayMathPattern(r'(?<!\\)(\$\$)([^\$]+)(\$\$)'), # $$...$$
+ DisplayMathPattern(r'(?<!\\)(\\\[)(.+?)(\\\])'), # \[...\]
+ DisplayMathPattern( # \begin...\end
+ r'(?<!\\)(\\begin{([a-z]+?\*?)})(.+?)(\\end{\2})')
)
if not self.getConfig('enable_dollar_delimiter'):
inlinemathpatterns = inlinemathpatterns[1:]
- if self.getConfig('use_asciimath'):
+ if use_asciimath:
mathpatterns = mathpatterns[:-1] # \begin...\end is TeX only
+ if use_gitlab_delimiters:
+ #
https://gitlab.com/gitlab-org/gitlab/blob/master/doc/user/markdown.md#math
+ inlinemathpatterns = (
+ InlineMathPattern(r'(?<!\\)(\$`)([^`]+)(`\$)'), # $`...`$
+ )
+ mathpatterns = ()
+ preprocessor = GitLabPreprocessor(md)
+ preprocessor._content_type = content_type
+ # we should have higher priority than 'fenced_code_block' which
+ # has 25
+ md.preprocessors.register(preprocessor, 'math-gitlab', 27)
+
for i, pattern in enumerate(mathpatterns):
- pattern.handleMatch = handle_match
- md.inlinePatterns.add('math-%d' % i, pattern, '<escape')
+ pattern._add_preview = add_preview
+ pattern._content_type = content_type
+ # we should have higher priority than 'escape' which has 180
+ md.inlinePatterns.register(pattern, 'math-%d' % i, 185)
for i, pattern in enumerate(inlinemathpatterns):
- pattern.handleMatch = handle_match_inline
- md.inlinePatterns.add('math-inline-%d' % i, pattern, '<escape')
+ pattern._add_preview = add_preview
+ pattern._content_type = content_type
+ # to use gitlab delimiters, we should have higher priority than
+ # 'backtick' which has 190
+ priority = 195 if use_gitlab_delimiters else 185
+ md.inlinePatterns.register(pattern, 'math-inline-%d' % i, priority)
if self.getConfig('enable_dollar_delimiter'):
md.ESCAPED_CHARS.append('$')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-markdown-math-0.6/pyproject.toml
new/python-markdown-math-0.8/pyproject.toml
--- old/python-markdown-math-0.6/pyproject.toml 1970-01-01 01:00:00.000000000
+0100
+++ new/python-markdown-math-0.8/pyproject.toml 2018-11-03 08:47:12.000000000
+0100
@@ -0,0 +1,2 @@
+[build-system]
+requires = ["setuptools>=30.3", "wheel"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-markdown-math-0.6/python_markdown_math.egg-info/PKG-INFO
new/python-markdown-math-0.8/python_markdown_math.egg-info/PKG-INFO
--- old/python-markdown-math-0.6/python_markdown_math.egg-info/PKG-INFO
2018-06-15 14:52:31.000000000 +0200
+++ new/python-markdown-math-0.8/python_markdown_math.egg-info/PKG-INFO
2020-11-03 18:32:17.000000000 +0100
@@ -1,11 +1,11 @@
Metadata-Version: 2.1
Name: python-markdown-math
-Version: 0.6
+Version: 0.8
Summary: Math extension for Python-Markdown
Home-page: https://github.com/mitya57/python-markdown-math
Author: Dmitry Shachnev
Author-email: [email protected]
-License: BSD
+License: BSD 3-Clause License
Description: [][Travis]
[Travis]: https://travis-ci.org/mitya57/python-markdown-math
@@ -44,19 +44,17 @@
To use this extension, you need to include [MathJax] library in HTML
files, like:
```html
- <script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js">
+ <script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js">
</script>
```
- (replace `2.7.4` with the latest version if it is available).
-
[MathJax]: https://www.mathjax.org/
Also, you need to specify a configuration for MathJax. Please note that
- most of standard configuratons include `tex2jax` extension, which is
not needed
+ most of standard configurations include `tex2jax` extension, which is
not needed
with this code.
- Example of MathJax configuration:
+ Example of configuration for MathJax 2.x:
```html
<script type="text/x-mathjax-config">
@@ -68,6 +66,11 @@
</script>
```
+ If you want to use MathJax 3.x, you need to teach it to understand
2.x-style
+ `<script>` tags. See the [upgrading documentation] on how to do it.
+ Alternatively, you may use the [Arithmatex] extension which has a
generic
+ output mode, that does not require such special configuration.
+
To pass the extension to Python-Markdown, use `mdx_math` as extension
name.
For example:
@@ -86,6 +89,9 @@
</p>
```
+ [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
---------------
@@ -97,15 +103,30 @@
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://gitlab.com/gitlab-org/gitlab/blob/master/doc/user/markdown.md#math
+
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
`<head>`:
+
+ ```html
+ <link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css"
crossorigin="anonymous">
+ <script src="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js"
crossorigin="anonymous"></script>
+ <script
src="https://cdn.jsdelivr.net/npm/katex/dist/contrib/mathtex-script-type.min.js"
defer></script>
+ ```
+
Platform: UNKNOWN
+Requires-Python: >=3.6
Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-markdown-math-0.6/python_markdown_math.egg-info/SOURCES.txt
new/python-markdown-math-0.8/python_markdown_math.egg-info/SOURCES.txt
--- old/python-markdown-math-0.6/python_markdown_math.egg-info/SOURCES.txt
2018-06-15 14:52:31.000000000 +0200
+++ new/python-markdown-math-0.8/python_markdown_math.egg-info/SOURCES.txt
2020-11-03 18:32:17.000000000 +0100
@@ -3,6 +3,7 @@
README.md
changelog
mdx_math.py
+pyproject.toml
setup.cfg
setup.py
test.py
@@ -10,6 +11,7 @@
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
@@ -17,6 +19,7 @@
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
@@ -30,6 +33,10 @@
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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-markdown-math-0.6/python_markdown_math.egg-info/requires.txt
new/python-markdown-math-0.8/python_markdown_math.egg-info/requires.txt
--- old/python-markdown-math-0.6/python_markdown_math.egg-info/requires.txt
1970-01-01 01:00:00.000000000 +0100
+++ new/python-markdown-math-0.8/python_markdown_math.egg-info/requires.txt
2020-11-03 18:32:17.000000000 +0100
@@ -0,0 +1 @@
+Markdown>=3.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-markdown-math-0.6/setup.cfg
new/python-markdown-math-0.8/setup.cfg
--- old/python-markdown-math-0.6/setup.cfg 2018-06-15 14:52:31.000000000
+0200
+++ new/python-markdown-math-0.8/setup.cfg 2020-11-03 18:32:17.362078700
+0100
@@ -1,5 +1,22 @@
-[bdist_wheel]
-universal = 1
+[metadata]
+name = python-markdown-math
+version = 0.8
+description = Math extension for Python-Markdown
+long_description = file: README.md
+long_description_content_type = text/markdown
+author = Dmitry Shachnev
+author_email = [email protected]
+url = https://github.com/mitya57/python-markdown-math
+license = BSD 3-Clause License
+
+[options]
+py_modules = mdx_math
+python_requires = >=3.6
+install_requires = Markdown>=3.0
+
+[options.entry_points]
+markdown.extensions =
+ mdx_math = mdx_math:MathExtension
[egg_info]
tag_build =
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-markdown-math-0.6/setup.py
new/python-markdown-math-0.8/setup.py
--- old/python-markdown-math-0.6/setup.py 2018-06-15 14:52:00.000000000
+0200
+++ new/python-markdown-math-0.8/setup.py 2018-11-03 08:43:34.000000000
+0100
@@ -2,21 +2,4 @@
from setuptools import setup
-with open('README.md') as readme_file:
- long_description = readme_file.read()
-
-setup(name='python-markdown-math',
- description='Math extension for Python-Markdown',
- long_description=long_description,
- long_description_content_type='text/markdown',
- author='Dmitry Shachnev',
- author_email='[email protected]',
- version='0.6',
- url='https://github.com/mitya57/python-markdown-math',
- py_modules=['mdx_math'],
- entry_points={
- 'markdown.extensions': [
- 'mdx_math = mdx_math:MathExtension',
- ],
- },
- license='BSD')
+setup()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-markdown-math-0.6/test.py
new/python-markdown-math-0.8/test.py
--- old/python-markdown-math-0.6/test.py 2018-05-02 20:05:17.000000000
+0200
+++ new/python-markdown-math-0.8/test.py 2020-11-01 18:27:40.000000000
+0100
@@ -24,10 +24,13 @@
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_inline_asciimath = r('inline_asciimath', 'inline_asciimath',
use_asciimath=True)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-markdown-math-0.6/test_data/inline_gitlab.mkd
new/python-markdown-math-0.8/test_data/inline_gitlab.mkd
--- old/python-markdown-math-0.6/test_data/inline_gitlab.mkd 1970-01-01
01:00:00.000000000 +0100
+++ new/python-markdown-math-0.8/test_data/inline_gitlab.mkd 2020-06-02
14:34:08.000000000 +0200
@@ -0,0 +1 @@
+Inline math: $`e^{i \varphi}`$.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-markdown-math-0.6/test_data/standalone_gitlab.html
new/python-markdown-math-0.8/test_data/standalone_gitlab.html
--- old/python-markdown-math-0.6/test_data/standalone_gitlab.html
1970-01-01 01:00:00.000000000 +0100
+++ new/python-markdown-math-0.8/test_data/standalone_gitlab.html
2020-11-01 18:27:40.000000000 +0100
@@ -0,0 +1,8 @@
+<script type="math/tex; mode=display">
+ e^{i \varphi} =
+ \cos \varphi + i \sin \varphi
+</script>
+
+<script type="math/tex; mode=display">
+ \text{one more math block}
+</script>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-markdown-math-0.6/test_data/standalone_gitlab.mkd
new/python-markdown-math-0.8/test_data/standalone_gitlab.mkd
--- old/python-markdown-math-0.6/test_data/standalone_gitlab.mkd
1970-01-01 01:00:00.000000000 +0100
+++ new/python-markdown-math-0.8/test_data/standalone_gitlab.mkd
2020-06-02 15:32:55.000000000 +0200
@@ -0,0 +1,8 @@
+```math
+ e^{i \varphi} =
+ \cos \varphi + i \sin \varphi
+```
+
+```math
+ \text{one more math block}
+```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-markdown-math-0.6/test_data/standalone_gitlab_nested.html
new/python-markdown-math-0.8/test_data/standalone_gitlab_nested.html
--- old/python-markdown-math-0.6/test_data/standalone_gitlab_nested.html
1970-01-01 01:00:00.000000000 +0100
+++ new/python-markdown-math-0.8/test_data/standalone_gitlab_nested.html
2020-11-01 18:27:40.000000000 +0100
@@ -0,0 +1,8 @@
+<ul>
+<li>in list:
+<script type="math/tex; mode=display">
+ e^{i \varphi} =
+ \cos \varphi + i \sin \varphi
+</script>
+</li>
+</ul>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-markdown-math-0.6/test_data/standalone_gitlab_nested.mkd
new/python-markdown-math-0.8/test_data/standalone_gitlab_nested.mkd
--- old/python-markdown-math-0.6/test_data/standalone_gitlab_nested.mkd
1970-01-01 01:00:00.000000000 +0100
+++ new/python-markdown-math-0.8/test_data/standalone_gitlab_nested.mkd
2020-11-01 18:27:40.000000000 +0100
@@ -0,0 +1,5 @@
+- in list:
+ ```math
+ e^{i \varphi} =
+ \cos \varphi + i \sin \varphi
+ ```