aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmarkdown.py2
-rw-r--r--tests/misc/autolinks_with_asterisks.html3
-rw-r--r--tests/misc/autolinks_with_asterisks.txt2
3 files changed, 6 insertions, 1 deletions
diff --git a/markdown.py b/markdown.py
index a38c6ba..69616be 100755
--- a/markdown.py
+++ b/markdown.py
@@ -210,7 +210,7 @@ def handleAttributes(text, parent):
return RE.regExp['attr'].sub(attributeCallback, text)
-class AtomicString(str):
+class AtomicString(unicode):
"A string which should not be further processed."
pass
diff --git a/tests/misc/autolinks_with_asterisks.html b/tests/misc/autolinks_with_asterisks.html
new file mode 100644
index 0000000..a7f2609
--- /dev/null
+++ b/tests/misc/autolinks_with_asterisks.html
@@ -0,0 +1,3 @@
+<p>
+ <a href="http://some.site/weird*url*thing">http://some.site/weird*url*thing</a>
+</p> \ No newline at end of file
diff --git a/tests/misc/autolinks_with_asterisks.txt b/tests/misc/autolinks_with_asterisks.txt
new file mode 100644
index 0000000..24de5d9
--- /dev/null
+++ b/tests/misc/autolinks_with_asterisks.txt
@@ -0,0 +1,2 @@
+<http://some.site/weird*url*thing>
+