diff --git a/mistletoe/span_tokenizer.py b/mistletoe/span_tokenizer.py index e60498f..4e7a1da 100644 --- a/mistletoe/span_tokenizer.py +++ b/mistletoe/span_tokenizer.py @@ -64,7 +64,7 @@ def eval_new_child(parent, child): def relation(x, y): if x.end <= y.start: - return 0 # x preceeds y + return 0 # x precedes y if x.end >= y.end: if x.parse_start <= y.start and x.parse_end >= y.end: return 2 # x contains y diff --git a/test/samples/syntax.md b/test/samples/syntax.md index dd71047..4442b81 100644 --- a/test/samples/syntax.md +++ b/test/samples/syntax.md @@ -298,7 +298,7 @@ Quote Level from the Text menu. Markdown supports ordered (numbered) and unordered (bulleted) lists. -Unordered lists use asterisks, pluses, and hyphens -- interchangably +Unordered lists use asterisks, pluses, and hyphens -- interchangeably -- as list markers: * Red