-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into lang-name-in-class-using-pygments
- Loading branch information
Showing
31 changed files
with
272 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
from os.path import * | ||
from pprint import pformat | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
import sys | ||
import re | ||
from os.path import * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,7 @@ def is_block_level (tag) : | |
(re.compile(">"), ">"), | ||
(re.compile("\""), """)] | ||
|
||
ENTITY_NORMALIZATION_EXPRESSIONS_SOFT = [ (re.compile("&(?!\#)"), "&"), | ||
ENTITY_NORMALIZATION_EXPRESSIONS_SOFT = [ (re.compile(r"&(?!\#)"), "&"), | ||
(re.compile("<"), "<"), | ||
(re.compile(">"), ">"), | ||
(re.compile("\""), """)] | ||
|
@@ -325,7 +325,7 @@ def toxml(self): | |
value = self.attribute_values[attr] | ||
value = self.doc.normalizeEntities(value, | ||
avoidDoubleNormalizing=True) | ||
buffer += ' %s="%s"' % (attr, value) | ||
buffer += ' {}="{}"'.format(attr, value) | ||
|
||
|
||
# Now let's actually append the children | ||
|
@@ -672,7 +672,7 @@ def run (self, lines) : | |
LINK_ANGLED_RE = BRK + r'\s*\(<([^\)]*)>\)' # [text](<url>) | ||
IMAGE_LINK_RE = r'\!' + BRK + r'\s*\(([^\)]*)\)' # ![alttxt](http://x.com/) | ||
REFERENCE_RE = BRK+ r'\s*\[([^\]]*)\]' # [Google][3] | ||
IMAGE_REFERENCE_RE = r'\!' + BRK + '\s*\[([^\]]*)\]' # ![alt text][2] | ||
IMAGE_REFERENCE_RE = r'\!' + BRK + r'\s*\[([^\]]*)\]' # ![alt text][2] | ||
NOT_STRONG_RE = r'( \* )' # stand-alone * or _ | ||
AUTOLINK_RE = r'<(http://[^>]*)>' # <http://www.123.com> | ||
AUTOMAIL_RE = r'<([^> \!]*@[^> ]*)>' # <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p><img src=# onerror="alert()"></p></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"safe_mode": "escape"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<img src=# onerror="alert()"></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<p><img src="code>" onerror=alert()//</code" alt="" /></p> | ||
|
||
<p><img src="" onerror=alert()//" alt="" /> | ||
<a href="#"></a> | ||
<img src="`" onerror=alert()//`" alt="" /> | ||
<img src="<code>" onerror=alert()//<code>" alt="" /></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"safe_mode": "escape"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
![](`" onerror=alert()//`) | ||
|
||
|
||
![][XSS] | ||
[][XSS] | ||
![][XSS2] | ||
![][XSS3] | ||
|
||
|
||
[XSS]: " onerror=alert()// | ||
[XSS2]: `" onerror=alert()//` | ||
[XSS3]: <code>" onerror=alert()//<code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<p><a href="https://www.python.org">Python</a></p> | ||
|
||
<p>abc <a href="https://www.python.org">Python</a> def</p> | ||
|
||
<p><a href="https://www.python.org">Python</a>s</p> | ||
|
||
<p><a href="https://www.python.org">Python</a></p> | ||
|
||
<p><a href="https://www.python.org">Python</a>with<em>more</em>text</p> | ||
|
||
<p>[NoLink]</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"extras": ["link-shortrefs"]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extras link-shortrefs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Python] | ||
|
||
abc [Python] def | ||
|
||
[Python]s | ||
|
||
[Python][] | ||
|
||
[Python]with_more_text | ||
|
||
[NoLink] | ||
|
||
[Python]: https://www.python.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<p>Double variants:</p> | ||
|
||
<p><strong>one_two_three</strong></p> | ||
|
||
<p><strong><em>one_two_three</em></strong></p> | ||
|
||
<p><em><strong>one_two_three</strong></em></p> | ||
|
||
<p><strong><em>one_two_three</em></strong></p> | ||
|
||
<p>Single variants:</p> | ||
|
||
<p><em>one_two_three</em></p> | ||
|
||
<p><em>one_two_three</em></p> | ||
|
||
<p><em>one*two*three</em></p> | ||
|
||
<p><em>one<em>two</em>three</em></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"extras": {"middle-word-em": False}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Double variants: | ||
|
||
**one_two_three** | ||
|
||
***one_two_three*** | ||
|
||
_**one_two_three**_ | ||
|
||
**_one_two_three_** | ||
|
||
Single variants: | ||
|
||
*one_two_three* | ||
|
||
_one_two_three_ | ||
|
||
_one*two*three_ | ||
|
||
*one*two*three* |
Oops, something went wrong.