Skip to content
Permalink
Browse files

fix: Fix undefined entity for `¶`

  • Loading branch information
pawamoy committed Dec 28, 2020
1 parent 8ba2577 commit 2c29211002d515db40e5bdabf6cbf32ec8633a05
Showing with 11 additions and 9 deletions.
  1. +11 −9 src/mkdocstrings/extension.py
@@ -43,16 +43,17 @@

ENTITIES = """
<!DOCTYPE html [
<!ENTITY nbsp '&amp;nbsp;'>
<!ENTITY lsquo '&amp;lsquo;'>
<!ENTITY rsquo '&amp;rsquo;'>
<!ENTITY ldquo '&amp;ldquo;'>
<!ENTITY rdquo '&amp;rdquo;'>
<!ENTITY laquo '&amp;laquo;'>
<!ENTITY raquo '&amp;raquo;'>
<!ENTITY hellip '&amp;hellip;'>
<!ENTITY ndash '&amp;ndash;'>
<!ENTITY laquo '&amp;laquo;'>
<!ENTITY ldquo '&amp;ldquo;'>
<!ENTITY lsquo '&amp;lsquo;'>
<!ENTITY mdash '&amp;mdash;'>
<!ENTITY nbsp '&amp;nbsp;'>
<!ENTITY ndash '&amp;ndash;'>
<!ENTITY para '&amp;para;'>
<!ENTITY raquo '&amp;raquo;'>
<!ENTITY rdquo '&amp;rdquo;'>
<!ENTITY rsquo '&amp;rsquo;'>
]>
"""

@@ -216,8 +217,9 @@ def process_block(self, identifier: str, yaml_block: str, heading_level: int = 0
raise

log.debug("Loading HTML back into XML tree")
rendered = ENTITIES + rendered
try:
xml_contents = XML(ENTITIES + rendered)
xml_contents = XML(rendered)
except ParseError as error:
log_xml_parse_error(str(error), rendered)
raise

0 comments on commit 2c29211

Please sign in to comment.