Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeetree committed Jun 20, 2024
1 parent fc12ddb commit a2babfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"}
Expand Down
9 changes: 3 additions & 6 deletions src/raidoc/raimark_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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() == '<p></p>':
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):
Expand Down

0 comments on commit a2babfa

Please sign in to comment.