Skip to content

Commit 10d1edc

Browse files
Fix typos discovered by codespell (#79)
Co-authored-by: Chris Sewell <[email protected]>
1 parent 8bc0dc5 commit 10d1edc

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

rst_to_myst/mdformat_render.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def rst_to_myst(
202202
:param warning_stream: The warning IO to write to
203203
:param language_code: the language module to use,
204204
for directive/role name translation
205-
:param use_sphinx: Whether to load sphinx roles, directives and extentions
205+
:param use_sphinx: Whether to load sphinx roles, directives and extensions
206206
:param extensions: Sphinx extension to load
207207
:param conversions: Overrides for mapping of how to convert directives;
208208
directive module path -> conversion type

tests/test_texts/test_texts_directives_.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ The following options are recognized:
550550
`number-lines`
551551

552552
: Precede every line with a line number.
553-
The optional argument is the number of the first line (defaut 1).
553+
The optional argument is the number of the first line (default 1).
554554

555555
and the common options [:class:] and [:name:].
556556

@@ -880,7 +880,7 @@ Working limitations:
880880
[^whitespace-delim]: Whitespace delimiters are supported only for external
881881
CSV files.
882882

883-
[^ascii-char]: With Python 2, the valuess for the `delimiter`,
883+
[^ascii-char]: With Python 2, the values for the `delimiter`,
884884
`quote`, and `escape` options must be ASCII characters. (The csv
885885
module does not support Unicode and all non-ASCII characters are
886886
encoded as multi-byte utf-8 string). This limitation does not exist
@@ -1564,7 +1564,7 @@ The following options are recognized:
15641564
`number-lines`
15651565

15661566
: Precede every code line with a line number.
1567-
The optional argument is the number of the first line (defaut 1).
1567+
The optional argument is the number of the first line (default 1).
15681568
Works only with `code` or `literal`.
15691569
(New in Docutils 0.9)
15701570

tests/test_texts/test_texts_restructuredtext_.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3039,7 +3039,7 @@ Two forms of URI are recognized:
30393039
Punctuation at the end of a URI is not considered part of the URI,
30403040
unless the URI is terminated by a closing angle bracket (">").
30413041
Backslashes may be used in URIs to escape markup characters,
3042-
specifically asterisks ("\*") and underscores ("\_") which are vaid URI
3042+
specifically asterisks ("\*") and underscores ("\_") which are valid URI
30433043
characters (see [Escaping Mechanism] above).
30443044
30453045
[^uri]: Uniform Resource Identifier. URIs are a general form of

tests/texts/directives.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ The following options are recognized:
508508

509509
``number-lines`` : [start line number]
510510
Precede every line with a line number.
511-
The optional argument is the number of the first line (defaut 1).
511+
The optional argument is the number of the first line (default 1).
512512

513513
and the common options `:class:`_ and `:name:`_.
514514

@@ -818,7 +818,7 @@ Working limitations:
818818
.. [#whitespace-delim] Whitespace delimiters are supported only for external
819819
CSV files.
820820
821-
.. [#ASCII-char] With Python 2, the valuess for the ``delimiter``,
821+
.. [#ASCII-char] With Python 2, the values for the ``delimiter``,
822822
``quote``, and ``escape`` options must be ASCII characters. (The csv
823823
module does not support Unicode and all non-ASCII characters are
824824
encoded as multi-byte utf-8 string). This limitation does not exist
@@ -1450,7 +1450,7 @@ The following options are recognized:
14501450

14511451
``number-lines`` : [start line number]
14521452
Precede every code line with a line number.
1453-
The optional argument is the number of the first line (defaut 1).
1453+
The optional argument is the number of the first line (default 1).
14541454
Works only with ``code`` or ``literal``.
14551455
(New in Docutils 0.9)
14561456

tests/texts/restructuredtext.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2888,7 +2888,7 @@ Two forms of URI are recognized:
28882888
Punctuation at the end of a URI is not considered part of the URI,
28892889
unless the URI is terminated by a closing angle bracket (">").
28902890
Backslashes may be used in URIs to escape markup characters,
2891-
specifically asterisks ("*") and underscores ("_") which are vaid URI
2891+
specifically asterisks ("*") and underscores ("_") which are valid URI
28922892
characters (see `Escaping Mechanism`_ above).
28932893

28942894
.. [#URI] Uniform Resource Identifier. URIs are a general form of

0 commit comments

Comments
 (0)