Skip to content

Commit 8a567c5

Browse files
📚 Fix typos discovered by codespell (#969)
Co-authored-by: Chris Sewell <[email protected]>
1 parent 8ea5645 commit 8a567c5

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ The `docutils` parser now supports many more features, and improvements to suppo
168168
- `myst_meta_html` and `myst_substitutions` options are now supported (<gh-pr:672>)
169169
- `myst_heading_anchors` option is now supported (<gh-pr:678>)
170170
- Math block labels syntax is now supported (<gh-pr:668>)
171-
- Missing directive/role errors errors are now suppressable warnings (<gh-pr:687>)
172-
- Non-fatal directive parsing errors are now suppressable warnings (<gh-pr:682>)
171+
- Missing directive/role errors errors are now suppressible warnings (<gh-pr:687>)
172+
- Non-fatal directive parsing errors are now suppressible warnings (<gh-pr:682>)
173173
- Most of the extended markdown syntax below is also supported
174174

175175
### 🔗 Extended Markdown links

docs/develop/background.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ syntax pieces to utilize the most powerful parts of reStructuredText.
2222
The CommonMark community has been discussing an "official" extension syntax for many
2323
years now (for example, see
2424
[this seven-year-old thread about directives](https://talk.commonmark.org/t/generic-directives-plugins-syntax/444) as well as
25-
[this more recent converstaion](https://talk.commonmark.org/t/support-for-extension-token/2771),
25+
[this more recent conversation](https://talk.commonmark.org/t/support-for-extension-token/2771),
2626
and [this comment listing several more threads on this topic](https://talk.commonmark.org/t/extension-terminology-and-rules/1233)).
2727
2828
We have chosen a "roles and directives" syntax that seems reasonable and follows other

docs/syntax/cross-referencing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Targets are used to define custom anchors that you can refer to elsewhere in you
1414
There are three primary ways to create targets:
1515

1616
1. Annotating a syntax block with `(target)=`
17-
2. Annotating a syntax bloc/inline/span with an `{#id}` attribute (using the [attrs_block](#syntax/attributes/block) and [attrs_inline](#syntax/attributes/inline) extensions)
17+
2. Annotating a syntax block/inline/span with an `{#id}` attribute (using the [attrs_block](#syntax/attributes/block) and [attrs_inline](#syntax/attributes/inline) extensions)
1818
3. Adding a `name` option to a directive
1919

2020
::::{myst-example}

docs/syntax/math.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Conversely `\\` will negate the escaping, so `\\$a$` renders as \\$a$.
7171
7272
Enabling the [amsmath](#syntax/amsmath) extension will directly parse the following top-level math environments:
7373
74-
> equation, multline, gather, align, alignat, flalign, matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix, eqnarray.
74+
> equation, multiline, gather, align, alignat, flalign, matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix, eqnarray.
7575
7676
As expected, environments ending in `*` will not be numbered, for example:
7777

docs/syntax/optional.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ By adding `"amsmath"` to `myst_enable_extensions` (in the {{ confpy }}),
218218
you can enable direct parsing of [amsmath](https://ctan.org/pkg/amsmath) LaTeX equations.
219219
These top-level math environments will then be directly parsed:
220220

221-
> equation, multline, gather, align, alignat, flalign, matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix, eqnarray.
221+
> equation, multiline, gather, align, alignat, flalign, matrix, pmatrix, bmatrix, Bmatrix, vmatrix, Vmatrix, eqnarray.
222222
223223
As expected, environments ending in `*` will not be numbered, for example:
224224

myst_parser/mdit_to_docutils/sphinx_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def get_inventory_matches(
182182
)
183183

184184
def render_math_block_label(self, token: SyntaxTreeNode) -> None:
185-
"""Render math with referencable labels, e.g. ``$a=1$ (label)``."""
185+
"""Render math with referenceable labels, e.g. ``$a=1$ (label)``."""
186186
label = token.info
187187
content = token.content
188188
node = nodes.math_block(

myst_parser/parsers/directives.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,19 +269,19 @@ def _parse_directive_options(
269269
value: str | None
270270
for name, value in options.items():
271271
try:
272-
convertor = options_spec[name]
272+
converter = options_spec[name]
273273
except KeyError:
274274
unknown_options.append(name)
275275
continue
276276
if not value:
277277
# restructured text parses empty option values as None
278278
value = None
279-
if convertor is flag:
279+
if converter is flag:
280280
# flag will error if value is not empty,
281281
# but to be more permissive we allow any value
282282
value = None
283283
try:
284-
converted_value = convertor(value)
284+
converted_value = converter(value)
285285
except (ValueError, TypeError) as error:
286286
validation_errors.append(
287287
ParseWarnings(

myst_parser/warnings_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class MystWarnings(Enum):
5555

5656
# extensions
5757
HEADING_SLUG = "heading_slug"
58-
"""An error occured computing a heading slug."""
58+
"""An error occurred computing a heading slug."""
5959
STRIKETHROUGH = "strikethrough"
6060
"""Strikethrough warning, since only implemented in HTML."""
6161
HTML_PARSE = "html"

0 commit comments

Comments
 (0)