Skip to content

Commit 7748e13

Browse files
authored
📚 DOCS: Fix typos (#203)
1 parent c68d342 commit 7748e13

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ It can be setup by:
2929
Editors like VS Code also have automatic code reformat utilities, which can adhere to this standard.
3030

3131
All functions and class methods should be annotated with types and include a docstring.
32-
The prefered docstring format is outlined in `markdown-it-py/docstring.fmt.mustache` and can be used automatically with the [autodocstring](https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring) VS Code extension.
32+
The preferred docstring format is outlined in `markdown-it-py/docstring.fmt.mustache` and can be used automatically with the [autodocstring](https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring) VS Code extension.
3333

3434
## Testing
3535

markdown_it/common/html_blocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""List of valid html blocks names, accorting to commonmark spec
1+
"""List of valid html blocks names, according to commonmark spec
22
http://jgm.github.io/CommonMark/spec.html#html-blocks
33
"""
44

markdown_it/port.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@
4545
`MarkdownIt.add_render_rule(name, function, fmt="html")`,
4646
rather than `MarkdownIt.renderer.rules[name] = function`
4747
and renderers should declare a class property `__output__ = "html"`.
48-
This allows for extensability to more than just HTML renderers
48+
This allows for extensibility to more than just HTML renderers
4949
- inline tokens in tables are assigned a map (this is helpful for propagation to children)

markdown_it/presets/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def make():
2323
"breaks": False, # Convert '\n' in paragraphs into <br>
2424
"langPrefix": "language-", # CSS language prefix for fenced blocks
2525
# Highlighter function. Should return escaped HTML,
26-
# or '' if the source string is not changed and should be escaped externaly.
26+
# or '' if the source string is not changed and should be escaped externally.
2727
# If result starts with <pre... internal wrapper is skipped.
2828
#
2929
# function (/*str, lang, attrs*/) { return ''; }

markdown_it/presets/zero.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def make():
2626
"breaks": False, # Convert '\n' in paragraphs into <br>
2727
"langPrefix": "language-", # CSS language prefix for fenced blocks
2828
# Highlighter function. Should return escaped HTML,
29-
# or '' if the source string is not changed and should be escaped externaly.
29+
# or '' if the source string is not changed and should be escaped externally.
3030
# If result starts with <pre... internal wrapper is skipped.
3131
# function (/*str, lang, attrs*/) { return ''; }
3232
"highlight": None,

markdown_it/ruler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Ruler
99
- enable/disable rules
1010
- add/replace rules
1111
- allow assign rules to additional named chains (in the same)
12-
- cacheing lists of active rules
12+
- caching lists of active rules
1313
1414
You will not need use this class directly until write plugins. For simple
1515
rules control use [[MarkdownIt.disable]], [[MarkdownIt.enable]] and

markdown_it/rules_inline/strikethrough.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _postProcess(state: StateInline, delimiters: list[Delimiter]):
9494

9595
i += 1
9696

97-
# If a marker sequence has an odd number of characters, it's splitted
97+
# If a marker sequence has an odd number of characters, it's split
9898
# like this: `~~~~~` -> `~` + `~~` + `~~`, leaving one marker at the
9999
# start of the sequence.
100100
#

markdown_it/rules_inline/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
# Rule to skip pure text
8-
# '{}$%@~+=:' reserved for extentions
8+
# '{}$%@~+=:' reserved for extensions
99

1010
# !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @, [, \, ], ^, _, `, {, |, }, or ~
1111

tests/test_cmark_spec/spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4533,7 +4533,7 @@ inside the code block:
45334533

45344534
Note that rules #1 and #2 only apply to two cases: (a) cases
45354535
in which the lines to be included in a list item begin with a
4536-
characer other than a space or tab, and (b) cases in which
4536+
character other than a space or tab, and (b) cases in which
45374537
they begin with an indented code
45384538
block. In a case like the following, where the first block begins with
45394539
three spaces of indentation, the rules do not allow us to form a list item by

tests/test_cmark_spec/test_spec/test_file.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3418,7 +3418,7 @@ <h2>List items</h2>
34183418
</code></pre>
34193419
<p>Note that rules #1 and #2 only apply to two cases: (a) cases
34203420
in which the lines to be included in a list item begin with a
3421-
characer other than a space or tab, and (b) cases in which
3421+
character other than a space or tab, and (b) cases in which
34223422
they begin with an indented code
34233423
block. In a case like the following, where the first block begins with
34243424
three spaces of indentation, the rules do not allow us to form a list item by

tests/test_port/fixtures/fatal.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
Should not throw exception on invalid chars in URL (`*` not allowed in path) [mailformed URI]
1+
Should not throw exception on invalid chars in URL (`*` not allowed in path) [malformed URI]
22
.
33
[foo](<&#x25;test>)
44
.
55
<p><a href="%25test">foo</a></p>
66
.
77

88

9-
Should not throw exception on broken utf-8 sequence in URL [mailformed URI]
9+
Should not throw exception on broken utf-8 sequence in URL [malformed URI]
1010
.
1111
[foo](%C3)
1212
.
1313
<p><a href="%C3">foo</a></p>
1414
.
1515

1616

17-
Should not throw exception on broken utf-16 surrogates sequence in URL [mailformed URI]
17+
Should not throw exception on broken utf-16 surrogates sequence in URL [malformed URI]
1818
.
1919
[foo](&#xD800;)
2020
.

0 commit comments

Comments
 (0)