Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix: Fix undefined entity for `¶`
- Loading branch information
Showing
with
11 additions
and
9 deletions.
-
+11
−9
src/mkdocstrings/extension.py
|
|
@@ -43,16 +43,17 @@ |
|
|
|
|
|
ENTITIES = """ |
|
|
<!DOCTYPE html [ |
|
|
<!ENTITY nbsp '&nbsp;'> |
|
|
<!ENTITY lsquo '&lsquo;'> |
|
|
<!ENTITY rsquo '&rsquo;'> |
|
|
<!ENTITY ldquo '&ldquo;'> |
|
|
<!ENTITY rdquo '&rdquo;'> |
|
|
<!ENTITY laquo '&laquo;'> |
|
|
<!ENTITY raquo '&raquo;'> |
|
|
<!ENTITY hellip '&hellip;'> |
|
|
<!ENTITY ndash '&ndash;'> |
|
|
<!ENTITY laquo '&laquo;'> |
|
|
<!ENTITY ldquo '&ldquo;'> |
|
|
<!ENTITY lsquo '&lsquo;'> |
|
|
<!ENTITY mdash '&mdash;'> |
|
|
<!ENTITY nbsp '&nbsp;'> |
|
|
<!ENTITY ndash '&ndash;'> |
|
|
<!ENTITY para '&para;'> |
|
|
<!ENTITY raquo '&raquo;'> |
|
|
<!ENTITY rdquo '&rdquo;'> |
|
|
<!ENTITY rsquo '&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 |
|
|
|