aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Takhteyev <yuri@freewisdom.org>2008-08-20 22:57:46 -0700
committerYuri Takhteyev <yuri@freewisdom.org>2008-08-20 22:57:46 -0700
commit8ba141154f663f2e46e6124396eca6d0443fdb37 (patch)
tree4438e7320d995698da93871764893d83a7794ddf
parent17292efebc8c64fe646935fc420cd703003c007f (diff)
downloadmarkdown-8ba141154f663f2e46e6124396eca6d0443fdb37.tar.gz
markdown-8ba141154f663f2e46e6124396eca6d0443fdb37.tar.bz2
markdown-8ba141154f663f2e46e6124396eca6d0443fdb37.zip
Changing string to unicode in Neale's fix. Adding test cases.
-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>
+