Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
roniemartinez committed Aug 23, 2019
2 parents 97432cc + 05dacdc commit 6105b92
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -35,4 +35,4 @@ deploy:
distributions: "sdist bdist_wheel"
on:
branch: master
condition: $TRAVIS_PYTHON_VERSION = "3.6"
condition: $TRAVIS_PYTHON_VERSION = "3.6"
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,9 @@

## Unreleased

## 2.7.1 - 2019-08-23
- Add xmlns in <math> (#56)

## 2.7.0 - 2019-06-05
### Added
- Support Math alphabets (#51)
Expand Down
3 changes: 2 additions & 1 deletion latex2mathml/converter.py
Expand Up @@ -14,8 +14,9 @@
from latex2mathml.symbols_parser import convert_symbol


def convert(latex):
def convert(latex, xmlns="http://www.w3.org/1998/Math/MathML"):
math = eTree.Element('math')
math.attrib["xmlns"] = xmlns
row = eTree.SubElement(math, 'mrow')
_classify_subgroup(aggregate(latex), row)
return _convert(math)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
@@ -1,6 +1,6 @@
from setuptools import setup

VERSION = '2.7.0'
VERSION = '2.7.1'

setup(
name='latex2mathml',
Expand Down
1 change: 1 addition & 0 deletions tests/test_command.py
Expand Up @@ -17,6 +17,7 @@
@pytest.fixture
def math_and_row():
math = eTree.Element('math')
math.set('xmlns', 'http://www.w3.org/1998/Math/MathML')
row = eTree.SubElement(math, 'mrow')
yield math, row

Expand Down
1 change: 1 addition & 0 deletions tests/test_converter.py
Expand Up @@ -17,6 +17,7 @@
@pytest.fixture
def math_and_row():
math = eTree.Element('math')
math.set('xmlns', 'http://www.w3.org/1998/Math/MathML')
row = eTree.SubElement(math, 'mrow')
yield math, row

Expand Down
1 change: 1 addition & 0 deletions tests/test_issues.py
Expand Up @@ -17,6 +17,7 @@
@pytest.fixture
def math_and_row():
math = eTree.Element('math')
math.set('xmlns', 'http://www.w3.org/1998/Math/MathML')
row = eTree.SubElement(math, 'mrow')
yield math, row

Expand Down

0 comments on commit 6105b92

Please sign in to comment.