summaryrefslogtreecommitdiff
path: root/markdown/extensions/md_in_html.py
diff options
context:
space:
mode:
authorKian-Meng Ang <kianmeng@cpan.org>2022-04-02 17:16:10 +0800
committerWaylan Limberg <waylan.limberg@icloud.com>2022-04-10 15:13:22 -0400
commitf6ca75429562cfa7df333b3529838679e4bfd443 (patch)
treefa2ec9f694d39c96662ebaf2f6e67fcb2e4c51f0 /markdown/extensions/md_in_html.py
parent383de86c64101b8d14768d9a247c9efc97d703bd (diff)
downloadpython-markdown-f6ca75429562cfa7df333b3529838679e4bfd443.tar.gz
Fix typos and remove trailing spaces
Diffstat (limited to 'markdown/extensions/md_in_html.py')
-rw-r--r--markdown/extensions/md_in_html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/md_in_html.py b/markdown/extensions/md_in_html.py
index ff1d20f..ec7dcba 100644
--- a/markdown/extensions/md_in_html.py
+++ b/markdown/extensions/md_in_html.py
@@ -252,7 +252,7 @@ class MarkdownInHtmlProcessor(BlockProcessor):
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')
@@ -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