Merge branch 'master' of git.stuve-bamberg.de:ckremitzl/onpoint

This commit is contained in:
Knoch 2020-03-11 11:40:12 +01:00
commit de1aced44a
2 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,7 @@ def defragmentize(html):
class_list += " %s" % FRAGMENT_CLASS
fragment.set('class', class_list)
fragment.text = re.sub(r"\s*%s\s*" % re.escape(FRAGMENT_TAG), '', fragment.text).strip()
fragment.text = re.sub(r"\s*%s\s*" % re.escape(FRAGMENT_TAG), '', fragment.text)
return etree.tostring(dom, method='html', encoding='utf-8',
pretty_print=True).decode('utf-8')

View File

@ -116,8 +116,7 @@ def get_slide_layout(layout_name):
def convert_slide_content(content):
filters = []
pdoc_args = [
'--mathjax', # Preparing formulas
'--smart' # Smart typography (dashes, ellipses, …)
'--mathjax' # Preparing formulas
]
return pypandoc.convert_text(
content, 'html',