Skip to content

Commit

Permalink
Fixed Emphasis not being considered as such
Browse files Browse the repository at this point in the history
  • Loading branch information
justalemon committed Dec 7, 2023
1 parent b71e8da commit c92f86f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fivedesc.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __get_paragraph_text(paragraph: marko.block.Paragraph | marko.block.Quote) -
text += __build_link(children)
elif isinstance(children, marko.block.Paragraph):
text += __get_paragraph_text(children)
elif isinstance(children, marko.inline.StrongEmphasis):
elif isinstance(children, (marko.inline.Emphasis, marko.inline.StrongEmphasis)):
strong = __get_raw_text(children.children)
text += f"<b>{strong}</b>"
elif isinstance(children, marko.inline.CodeSpan):
Expand Down

0 comments on commit c92f86f

Please sign in to comment.