Skip to content

Commit

Permalink
Fix nested list table admonitions by removing useless regex
Browse files Browse the repository at this point in the history
what was my vision with that lookahead tho
  • Loading branch information
TDKorn committed Jan 29, 2024
1 parent 6ae9880 commit 6105e92
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sphinx_readme/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,6 @@ def get_admonition_regex(self, admonition: Dict[str, str], admonition_type: str)
# raw html template body uses string formatting
pattern += rf"{body}"

pattern += r"(?=\n*(?:\S+|\Z))"
return pattern

def get_admonition_icon(self, admonition: dict) -> str:
Expand Down

0 comments on commit 6105e92

Please sign in to comment.