Skip to content

Commit

Permalink
Changing meta naming
Browse files Browse the repository at this point in the history
  • Loading branch information
chdemko committed May 29, 2016
1 parent d521150 commit 372e09b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pandoc_latex_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def getDefined(meta):
# Return the latex-environment defined in the meta
if not hasattr(getDefined, 'value'):
getDefined.value = {}
if 'latex-environment' in meta and meta['latex-environment']['t'] == 'MetaMap':
for environment, classes in meta['latex-environment']['c'].items():
if 'pandoc-latex-environment' in meta and meta['pandoc-latex-environment']['t'] == 'MetaMap':
for environment, classes in meta['pandoc-latex-environment']['c'].items():
if classes['t'] == 'MetaList':
getDefined.value[environment] = []
for klass in classes['c']:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='0.0.4',
version='1.0.0',

# The project's description
description='A pandoc filter for adding LaTeX environement on specific div',
Expand Down Expand Up @@ -57,7 +57,7 @@
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',

# Specify the OS
'Operating System :: OS Independent',
Expand Down
4 changes: 2 additions & 2 deletions tests/test_div.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_div():
init()

meta = {
'latex-environment': {
'pandoc-latex-environment': {
'c': {
'test': {
'c': [
Expand Down Expand Up @@ -109,7 +109,7 @@ def test_empty():
init()

meta = {
'latex-environment': {
'pandoc-latex-environment': {
'c': {
'test': {
'c': [
Expand Down

0 comments on commit 372e09b

Please sign in to comment.