diff options
author | Matthieu Bacconnier <neamar@neamar.fr> | 2021-05-02 14:18:34 +0200 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2021-05-02 19:57:44 -0400 |
commit | 4acb949256adc535d6e6cd84c4fb47db8dda2f46 (patch) | |
tree | 210052bd377e3aba224952f57bfcb97916da63c8 | |
parent | a11431539d08e14b0bd821ceb101fa59d6a74c8a (diff) | |
download | python-markdown-4acb949256adc535d6e6cd84c4fb47db8dda2f46.tar.gz |
Fix minor typos
-rw-r--r-- | markdown/extensions/admonition.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/markdown/extensions/admonition.py b/markdown/extensions/admonition.py index 9c66b4f..cb8d901 100644 --- a/markdown/extensions/admonition.py +++ b/markdown/extensions/admonition.py @@ -49,9 +49,9 @@ class AdmonitionProcessor(BlockProcessor): self.content_indention = 0 def parse_content(self, parent, block): - """Get sibling admontion. + """Get sibling admonition. - Retrieve the appropriate siblimg element. This can get trickly when + Retrieve the appropriate sibling element. This can get tricky when dealing with lists. """ @@ -72,8 +72,8 @@ class AdmonitionProcessor(BlockProcessor): if sibling is None or sibling.get('class', '').find(self.CLASSNAME) == -1: sibling = None else: - # If the last child is a list and the content is idented sufficient - # to be under it, then the content's is sibling is in the list. + # If the last child is a list and the content is sufficiently indented + # to be under it, then the content's sibling is in the list. last_child = self.lastChild(sibling) indent = 0 while last_child: @@ -83,12 +83,12 @@ class AdmonitionProcessor(BlockProcessor): ): # The expectation is that we'll find an <li> or <dt>. - # We should get it's last child as well. + # We should get its last child as well. sibling = self.lastChild(last_child) last_child = self.lastChild(sibling) if sibling else None # Context has been lost at this point, so we must adjust the - # text's identation level so it will be evaluated correctly + # text's indentation level so it will be evaluated correctly # under the list. block = block[self.tab_length:] indent += self.tab_length |