Compare commits

..

2 commits

4 changed files with 3 additions and 19 deletions

View file

@ -1 +1 @@
__version__ = '0.2.7'
__version__ = '0.2.8'

View file

@ -225,28 +225,12 @@ class LaTeXPreprocessor(markdown.preprocessors.Preprocessor):
return hashlib.sha1(tex.encode()).hexdigest()
class LaTeXPostprocessor(markdown.postprocessors.Postprocessor):
"""This post processor extension just allows us to further
refine, if necessary, the document after it has been parsed."""
def run(self, lines):
# Inline a style for default behavior
return [img_css] + lines
class MarkdownLatex(markdown.Extension):
"""Wrapper for LaTeXPreprocessor"""
def extendMarkdown(self, md):
# Our base LaTeX extension
md.preprocessors.register(
LaTeXPreprocessor(self),
'latex',
0,
)
md.preprocessors.register(
LaTeXPostprocessor(self),
'latex',
1,
)

View file

@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.7
current_version = 0.2.8
commit = True
tag = True

View file

@ -11,7 +11,7 @@ def readfile(file):
setup(
name='madblog',
version='0.2.7',
version='0.2.8',
author='Fabio Manganiello',
author_email='info@fabiomanganiello.com',
description='A minimal platform for Markdown-based blogs',