From 372e09b6e07f8c50b5bbb212f1df2999ec3c638e Mon Sep 17 00:00:00 2001 From: Christophe Demko Date: Sun, 29 May 2016 20:44:18 +0200 Subject: [PATCH] Changing meta naming --- pandoc_latex_environment.py | 4 ++-- setup.py | 4 ++-- tests/test_div.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pandoc_latex_environment.py b/pandoc_latex_environment.py index eb581e5..f6f3cbe 100644 --- a/pandoc_latex_environment.py +++ b/pandoc_latex_environment.py @@ -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']: diff --git a/setup.py b/setup.py index ffca0c3..6a9ddcc 100644 --- a/setup.py +++ b/setup.py @@ -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', @@ -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', diff --git a/tests/test_div.py b/tests/test_div.py index 5e257e0..a0173a2 100644 --- a/tests/test_div.py +++ b/tests/test_div.py @@ -14,7 +14,7 @@ def test_div(): init() meta = { - 'latex-environment': { + 'pandoc-latex-environment': { 'c': { 'test': { 'c': [ @@ -109,7 +109,7 @@ def test_empty(): init() meta = { - 'latex-environment': { + 'pandoc-latex-environment': { 'c': { 'test': { 'c': [