mirror of
https://github.com/venthur/blag.git
synced 2025-11-25 20:52:43 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1020637e6 | ||
|
|
a4d596b79d | ||
|
|
79edd04ee8 |
@@ -1,6 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [0.0.0] - YYYY-MM-DD
|
## [0.0.9] - 2021-06-22
|
||||||
|
|
||||||
*
|
|
||||||
|
|
||||||
|
* updated to jinja 3.0
|
||||||
|
* updated to sphinx 4.0
|
||||||
|
* added link to changelog
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ def markdown_factory():
|
|||||||
"""
|
"""
|
||||||
md = Markdown(
|
md = Markdown(
|
||||||
extensions=[
|
extensions=[
|
||||||
'meta', 'fenced_code', 'codehilite',
|
'meta', 'fenced_code', 'codehilite', 'smarty',
|
||||||
MarkdownLinkExtension()
|
MarkdownLinkExtension()
|
||||||
],
|
],
|
||||||
output_format='html5',
|
output_format='html5',
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__VERSION__ = '0.0.7'
|
__VERSION__ = '0.0.9'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
sphinx==3.5.3
|
sphinx==4.0.1
|
||||||
twine==3.4.1
|
twine==3.4.1
|
||||||
wheel==0.36.2
|
wheel==0.36.2
|
||||||
pytest==6.2.2
|
pytest==6.2.4
|
||||||
pytest-cov==2.11.1
|
pytest-cov==2.12.1
|
||||||
flake8==3.9.0
|
flake8==3.9.2
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
markdown==3.3.4
|
markdown==3.3.4
|
||||||
feedgenerator==1.9.1
|
feedgenerator==1.9.1
|
||||||
jinja2==2.11.3
|
jinja2==3.0.1
|
||||||
pygments==2.8.1
|
pygments==2.9.0
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -20,6 +20,8 @@ setup(
|
|||||||
project_urls={
|
project_urls={
|
||||||
'Documentation': 'https://blag.readthedocs.io/',
|
'Documentation': 'https://blag.readthedocs.io/',
|
||||||
'Source': 'https://github.com/venthur/blag',
|
'Source': 'https://github.com/venthur/blag',
|
||||||
|
'Changelog':
|
||||||
|
'https://github.com/venthur/blag/blob/master/CHANGELOG.md',
|
||||||
},
|
},
|
||||||
python_requires='>=3.8',
|
python_requires='>=3.8',
|
||||||
package_data={
|
package_data={
|
||||||
|
|||||||
@@ -49,3 +49,31 @@ def test_convert_metadata(input_, expected):
|
|||||||
def test_markdown_factory():
|
def test_markdown_factory():
|
||||||
md = markdown_factory()
|
md = markdown_factory()
|
||||||
assert isinstance(md, markdown.Markdown)
|
assert isinstance(md, markdown.Markdown)
|
||||||
|
|
||||||
|
|
||||||
|
def test_smarty():
|
||||||
|
md = markdown_factory()
|
||||||
|
|
||||||
|
md1 = """
|
||||||
|
|
||||||
|
this --- is -- a test ...
|
||||||
|
|
||||||
|
"""
|
||||||
|
html, meta = convert_markdown(md, md1)
|
||||||
|
assert 'mdash' in html
|
||||||
|
assert 'ndash' in html
|
||||||
|
assert 'hellip' in html
|
||||||
|
|
||||||
|
|
||||||
|
def test_smarty_code():
|
||||||
|
md = markdown_factory()
|
||||||
|
|
||||||
|
md1 = """
|
||||||
|
```
|
||||||
|
this --- is -- a test ...
|
||||||
|
```
|
||||||
|
"""
|
||||||
|
html, meta = convert_markdown(md, md1)
|
||||||
|
assert 'mdash' not in html
|
||||||
|
assert 'ndash' not in html
|
||||||
|
assert 'hellip' not in html
|
||||||
|
|||||||
Reference in New Issue
Block a user