diff options
author | Edward Betts <edward@4angle.com> | 2018-01-13 09:25:40 +0000 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2018-01-13 11:42:50 -0500 |
commit | 3fad73031e544de6c9f74621de923da3806a6c21 (patch) | |
tree | c9c4c6524f6d46627856d46a5caf011b9e293b2e /markdown | |
parent | 6d1537ac5e528db9e91cf905f507bb409e546d2c (diff) | |
download | markdown-3fad73031e544de6c9f74621de923da3806a6c21.tar.gz markdown-3fad73031e544de6c9f74621de923da3806a6c21.tar.bz2 markdown-3fad73031e544de6c9f74621de923da3806a6c21.zip |
Correct spelling mistakes.
Diffstat (limited to 'markdown')
-rw-r--r-- | markdown/__init__.py | 2 | ||||
-rw-r--r-- | markdown/blockprocessors.py | 2 | ||||
-rw-r--r-- | markdown/extensions/def_list.py | 4 | ||||
-rw-r--r-- | markdown/extensions/footnotes.py | 2 | ||||
-rw-r--r-- | markdown/extensions/smart_strong.py | 2 | ||||
-rw-r--r-- | markdown/preprocessors.py | 2 | ||||
-rw-r--r-- | markdown/test_tools.py | 6 | ||||
-rw-r--r-- | markdown/treeprocessors.py | 4 |
8 files changed, 12 insertions, 12 deletions
diff --git a/markdown/__init__.py b/markdown/__init__.py index 584990f..3769496 100644 --- a/markdown/__init__.py +++ b/markdown/__init__.py @@ -34,7 +34,7 @@ from __future__ import absolute_import from __future__ import unicode_literals from .core import Markdown, markdown, markdownFromFile -# For backward compatability as some extensions expect it... +# For backward compatibility as some extensions expect it... from .extensions import Extension # noqa __all__ = ['Markdown', 'markdown', 'markdownFromFile'] diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index 79c7f2e..223520f 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -268,7 +268,7 @@ class BlockQuoteProcessor(BlockProcessor): before = block[:m.start()] # Lines before blockquote # Pass lines before blockquote in recursively for parsing forst. self.parser.parseBlocks(parent, [before]) - # Remove ``> `` from begining of each line. + # Remove ``> `` from beginning of each line. block = '\n'.join( [self.clean(line) for line in block[m.start():].split('\n')] ) diff --git a/markdown/extensions/def_list.py b/markdown/extensions/def_list.py index 9057ebd..54fc064 100644 --- a/markdown/extensions/def_list.py +++ b/markdown/extensions/def_list.py @@ -51,7 +51,7 @@ class DefListProcessor(BlockProcessor): sibling = self.lastChild(parent) if not terms and sibling is None: # This is not a definition item. Most likely a paragraph that - # starts with a colon at the begining of a document or list. + # starts with a colon at the beginning of a document or list. blocks.insert(0, raw_block) return False if not terms and sibling.tag == 'p': @@ -59,7 +59,7 @@ class DefListProcessor(BlockProcessor): state = 'looselist' terms = sibling.text.split('\n') parent.remove(sibling) - # Aquire new sibling + # Acquire new sibling sibling = self.lastChild(parent) else: state = 'list' diff --git a/markdown/extensions/footnotes.py b/markdown/extensions/footnotes.py index 072c5dd..de3fc17 100644 --- a/markdown/extensions/footnotes.py +++ b/markdown/extensions/footnotes.py @@ -339,7 +339,7 @@ class FootnotePattern(Pattern): class FootnotePostTreeprocessor(Treeprocessor): - """ Ammend footnote div with duplicates. """ + """ Amend footnote div with duplicates. """ def __init__(self, footnotes): self.footnotes = footnotes diff --git a/markdown/extensions/smart_strong.py b/markdown/extensions/smart_strong.py index eeded31..9349f41 100644 --- a/markdown/extensions/smart_strong.py +++ b/markdown/extensions/smart_strong.py @@ -2,7 +2,7 @@ Smart_Strong Extension for Python-Markdown ========================================== -This extention adds smarter handling of double underscores within words. +This extension adds smarter handling of double underscores within words. See <https://Python-Markdown.github.io/extensions/smart_strong> for documentation. diff --git a/markdown/preprocessors.py b/markdown/preprocessors.py index d0af51a..8c87ecf 100644 --- a/markdown/preprocessors.py +++ b/markdown/preprocessors.py @@ -44,7 +44,7 @@ class Preprocessor(util.Processor): class NormalizeWhitespace(Preprocessor): - """ Normalize whitespace for consistant parsing. """ + """ Normalize whitespace for consistent parsing. """ def run(self, lines): source = '\n'.join(lines) diff --git a/markdown/test_tools.py b/markdown/test_tools.py index 9324bd4..204536a 100644 --- a/markdown/test_tools.py +++ b/markdown/test_tools.py @@ -128,7 +128,7 @@ class LegacyTestMeta(type): return type.__new__(cls, name, bases, dct) -# Define LegacyTestCase class with metaclass in Py2 & Py3 compatable way. +# Define LegacyTestCase class with metaclass in Py2 & Py3 compatible way. # See https://stackoverflow.com/a/38668373/866026 # TODO: If/when py2 support is dropped change to: # class LegacyTestCase(unittest.Testcase, metaclass=LegacyTestMeta) @@ -142,7 +142,7 @@ class LegacyTestCase(LegacyTestMeta('LegacyTestCase', (unittest.TestCase,), {'__ text-based test files and define various behaviors/defaults for those tests. The following properties are supported: - location: A path to the directory fo test files. An absolute path is prefered. + location: A path to the directory fo test files. An absolute path is preferred. exclude: A list of tests to exclude. Each test name should comprise the filename without an extension. normalize: A boolean value indicating if the HTML should be normalized. @@ -161,7 +161,7 @@ class LegacyTestCase(LegacyTestMeta('LegacyTestCase', (unittest.TestCase,), {'__ test file. The keyword arguments will "update" the `default_kwargs`. When the class instance is created, it will walk the given directory and create - a seperate unitttest for each set of test files using the naming scheme: + a separate unitttest for each set of test files using the naming scheme: `test_filename`. One unittest will be run for each set of input and output files. """ pass diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py index 8feea8d..e2566a4 100644 --- a/markdown/treeprocessors.py +++ b/markdown/treeprocessors.py @@ -292,7 +292,7 @@ class InlineProcessor(Treeprocessor): Arguments: * tree: ElementTree object, representing Markdown tree. - * ancestors: List of parent tag names that preceed the tree node (if needed). + * ancestors: List of parent tag names that precede the tree node (if needed). Returns: ElementTree object with applied inline patterns. @@ -391,7 +391,7 @@ class PrettifyTreeprocessor(Treeprocessor): """ Add linebreaks to ElementTree root object. """ self._prettifyETree(root) - # Do <br />'s seperately as they are often in the middle of + # Do <br />'s separately as they are often in the middle of # inline content and missed by _prettifyETree. brs = root.iter('br') for br in brs: |