From dd8de86fa5437410419ac74695f3a3fdc4f214af Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Sun, 29 Sep 2024 16:29:43 +0800 Subject: [PATCH] docs: fix typos Found via `codespell -H` --- mistletoe/span_tokenizer.py | 2 +- test/samples/syntax.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mistletoe/span_tokenizer.py b/mistletoe/span_tokenizer.py index e60498fd..4e7a1da8 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 dd710478..4442b81b 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