summaryrefslogtreecommitdiff
path: root/markdown/extensions
diff options
context:
space:
mode:
authorGaurav Kondhare <kondharegaurav@gmail.com>2020-03-22 20:58:16 +0530
committerWaylan Limberg <waylan.limberg@icloud.com>2020-03-22 20:29:26 -0400
commitc116cfcca8bf610b643cbc7eafe9228f7a832fc3 (patch)
tree9badecef531ecaee58e198556f2b6856d712ed99 /markdown/extensions
parent4e91681a75d084f019bd26f0c01b7282570e0f20 (diff)
downloadpython-markdown-c116cfcca8bf610b643cbc7eafe9228f7a832fc3.tar.gz
Fixed typos in extensions/codehilite.py
Fixed spellings : 1. shebang 2. identification Added 'the' before 'said' Fixed vertical line column size to 79 Fixed failing tests : Removed trailing spaces
Diffstat (limited to 'markdown/extensions')
-rw-r--r--markdown/extensions/codehilite.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/markdown/extensions/codehilite.py b/markdown/extensions/codehilite.py
index c3f3257..ac45ede 100644
--- a/markdown/extensions/codehilite.py
+++ b/markdown/extensions/codehilite.py
@@ -139,16 +139,16 @@ class CodeHilite:
def _parseHeader(self):
"""
- Determines language of a code block from shebang line and whether said
- line should be removed or left in place. If the sheband line contains a
- path (even a single /) then it is assumed to be a real shebang line and
- left alone. However, if no path is given (e.i.: #!python or :::python)
- then it is assumed to be a mock shebang for language identifitation of
- a code fragment and removed from the code block prior to processing for
- code highlighting. When a mock shebang (e.i: #!python) is found, line
- numbering is turned on. When colons are found in place of a shebang
- (e.i.: :::python), line numbering is left in the current state - off
- by default.
+ Determines language of a code block from shebang line and whether the
+ said line should be removed or left in place. If the sheband line
+ contains a path (even a single /) then it is assumed to be a real
+ shebang line and left alone. However, if no path is given
+ (e.i.: #!python or :::python) then it is assumed to be a mock shebang
+ for language identification of a code fragment and removed from the
+ code block prior to processing for code highlighting. When a mock
+ shebang (e.i: #!python) is found, line numbering is turned on. When
+ colons are found in place of a shebang (e.i.: :::python), line
+ numbering is left in the current state - off by default.
Also parses optional list of highlight lines, like: