Skip to content

Commit 7773ecd

Browse files
committed
No markup for empty pandoc.inlines Emph & Strong
1 parent 8495621 commit 7773ecd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

quartodoc/pandoc/inlines.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ def __str__(self):
158158
"""
159159
Return link as markdown
160160
"""
161+
if not self.content:
162+
return ""
163+
161164
content = inlinecontent_to_str(self.content)
162165
return f"**{content}**"
163166

@@ -173,6 +176,9 @@ def __str__(self):
173176
"""
174177
Return link as markdown
175178
"""
179+
if not self.content:
180+
return ""
181+
176182
content = inlinecontent_to_str(self.content)
177183
return f"*{content}*"
178184

0 commit comments

Comments
 (0)