1
0
mirror of https://github.com/venthur/blag.git synced 2025-11-25 20:52:43 +00:00

Compare commits

...

4 Commits
0.0.7 ... 1.0.0

Author SHA1 Message Date
Bastian Venthur
67f24642e5 bumped dependency to feedgenerator to version that uses description as a
subtitle for the feed.

bumped version.
2021-08-18 20:14:40 +02:00
Bastian Venthur
f1020637e6 bumped version, added changelog url 2021-06-22 22:13:04 +02:00
Bastian Venthur
a4d596b79d updated dependencies 2021-06-22 22:12:29 +02:00
Bastian Venthur
79edd04ee8 added smartypants support 2021-04-18 13:03:05 +02:00
7 changed files with 48 additions and 11 deletions

View File

@@ -1,6 +1,13 @@
# Changelog
## [0.0.0] - YYYY-MM-DD
## [1.0.0] - 2021-08-18
*
* first 1.0 release!
* bump requirements of feedgenerator to 1.9.2. this version uses the
description to provide a subtitle for the feed
## [0.0.9] - 2021-06-22
* updated to jinja 3.0
* updated to sphinx 4.0
* added link to changelog

View File

@@ -30,7 +30,7 @@ def markdown_factory():
"""
md = Markdown(
extensions=[
'meta', 'fenced_code', 'codehilite',
'meta', 'fenced_code', 'codehilite', 'smarty',
MarkdownLinkExtension()
],
output_format='html5',

View File

@@ -1 +1 @@
__VERSION__ = '0.0.7'
__VERSION__ = '1.0.0'

View File

@@ -1,6 +1,6 @@
sphinx==3.5.3
sphinx==4.0.1
twine==3.4.1
wheel==0.36.2
pytest==6.2.2
pytest-cov==2.11.1
flake8==3.9.0
pytest==6.2.4
pytest-cov==2.12.1
flake8==3.9.2

View File

@@ -1,4 +1,4 @@
markdown==3.3.4
feedgenerator==1.9.1
jinja2==2.11.3
pygments==2.8.1
feedgenerator==1.9.2
jinja2==3.0.1
pygments==2.9.0

View File

@@ -20,6 +20,8 @@ setup(
project_urls={
'Documentation': 'https://blag.readthedocs.io/',
'Source': 'https://github.com/venthur/blag',
'Changelog':
'https://github.com/venthur/blag/blob/master/CHANGELOG.md',
},
python_requires='>=3.8',
package_data={

View File

@@ -49,3 +49,31 @@ def test_convert_metadata(input_, expected):
def test_markdown_factory():
md = markdown_factory()
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