From 7cd4b4acfb61a75f8059a427028601c974f9e15e Mon Sep 17 00:00:00 2001 From: Erik Stein Date: Mon, 29 Jan 2018 10:30:30 +0100 Subject: [PATCH] Fixed PseudoParagraphProcessor: Make span instead of tag-less element. --- shared/markup/markdown_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/markup/markdown_utils.py b/shared/markup/markdown_utils.py index a0c8aa1..8c1a5f2 100644 --- a/shared/markup/markdown_utils.py +++ b/shared/markup/markdown_utils.py @@ -18,8 +18,8 @@ class PseudoParagraphProcessor(markdown_module.blockprocessors.ParagraphProcesso def run(self, parent, blocks): block = blocks.pop(0) if block.strip(): - # Create element without enclosing tags - p = markdown_module.util.etree.SubElement(parent, None) + # Create span element instead of paragraph + p = markdown_module.util.etree.SubElement(parent, 'span') p.text = block.lstrip()