aboutsummaryrefslogtreecommitdiffhomepage
path: root/libs/markdown/extensions/md_in_html.py
diff options
context:
space:
mode:
Diffstat (limited to 'libs/markdown/extensions/md_in_html.py')
-rw-r--r--libs/markdown/extensions/md_in_html.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/markdown/extensions/md_in_html.py b/libs/markdown/extensions/md_in_html.py
index 81cc15caa..ec7dcba0e 100644
--- a/libs/markdown/extensions/md_in_html.py
+++ b/libs/markdown/extensions/md_in_html.py
@@ -248,11 +248,11 @@ class MarkdownInHtmlProcessor(BlockProcessor):
def parse_element_content(self, element):
"""
- Resursively parse the text content of an etree Element as Markdown.
+ Recursively parse the text content of an etree Element as Markdown.
Any block level elements generated from the Markdown will be inserted as children of the element in place
of the text content. All `markdown` attributes are removed. For any elements in which Markdown parsing has
- been dissabled, the text content of it and its chidlren are wrapped in an `AtomicString`.
+ been disabled, the text content of it and its chidlren are wrapped in an `AtomicString`.
"""
md_attr = element.attrib.pop('markdown', 'off')
@@ -268,7 +268,7 @@ class MarkdownInHtmlProcessor(BlockProcessor):
for child in list(element):
self.parse_element_content(child)
- # Parse Markdown text in tail of children. Do this seperate to avoid raw HTML parsing.
+ # Parse Markdown text in tail of children. Do this separate to avoid raw HTML parsing.
# Save the position of each item to be inserted later in reverse.
tails = []
for pos, child in enumerate(element):
@@ -329,7 +329,7 @@ class MarkdownInHtmlProcessor(BlockProcessor):
# Cleanup stash. Replace element with empty string to avoid confusing postprocessor.
self.parser.md.htmlStash.rawHtmlBlocks.pop(index)
self.parser.md.htmlStash.rawHtmlBlocks.insert(index, '')
- # Comfirm the match to the blockparser.
+ # Confirm the match to the blockparser.
return True
# No match found.
return False