From a2babfae7b54cb6f6c0d353a97c44e29f3276319 Mon Sep 17 00:00:00 2001 From: maybetree Date: Thu, 20 Jun 2024 11:13:02 +0200 Subject: [PATCH] whoops --- pyproject.toml | 2 +- src/raidoc/raimark_ext.py | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3ab2563..8f92196 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "raidoc" -version = "1.0.4.1" +version = "1.0.4.2" description = "Documentation for RAIMAD" authors = [ {name = "maybetree", email = "maybetree48@proton.me"} diff --git a/src/raidoc/raimark_ext.py b/src/raidoc/raimark_ext.py index 0c3afb9..28d6b99 100644 --- a/src/raidoc/raimark_ext.py +++ b/src/raidoc/raimark_ext.py @@ -70,13 +70,10 @@ def render_paragraph(self, element): # then line skip with a single `>` # then the callout body - if not element.children: + rendered = super().render_paragraph(element) + if rendered.strip() == '

': return '' - if not element.children[0].children: - return '' - if not element.children[0].children[0]: - return '' - return super().render_paragraph(element) + return rendered class EmphasisMixin(object):