Skip to content

Commit 4acb949

Browse files
Neamarwaylan
authored andcommitted
Fix minor typos
1 parent a114315 commit 4acb949

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

markdown/extensions/admonition.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def __init__(self, parser):
4949
self.content_indention = 0
5050

5151
def parse_content(self, parent, block):
52-
"""Get sibling admontion.
52+
"""Get sibling admonition.
5353
54-
Retrieve the appropriate siblimg element. This can get trickly when
54+
Retrieve the appropriate sibling element. This can get tricky when
5555
dealing with lists.
5656
5757
"""
@@ -72,8 +72,8 @@ def parse_content(self, parent, block):
7272
if sibling is None or sibling.get('class', '').find(self.CLASSNAME) == -1:
7373
sibling = None
7474
else:
75-
# If the last child is a list and the content is idented sufficient
76-
# to be under it, then the content's is sibling is in the list.
75+
# If the last child is a list and the content is sufficiently indented
76+
# to be under it, then the content's sibling is in the list.
7777
last_child = self.lastChild(sibling)
7878
indent = 0
7979
while last_child:
@@ -83,12 +83,12 @@ def parse_content(self, parent, block):
8383
):
8484

8585
# The expectation is that we'll find an <li> or <dt>.
86-
# We should get it's last child as well.
86+
# We should get its last child as well.
8787
sibling = self.lastChild(last_child)
8888
last_child = self.lastChild(sibling) if sibling else None
8989

9090
# Context has been lost at this point, so we must adjust the
91-
# text's identation level so it will be evaluated correctly
91+
# text's indentation level so it will be evaluated correctly
9292
# under the list.
9393
block = block[self.tab_length:]
9494
indent += self.tab_length

0 commit comments

Comments
 (0)