diff --git a/textile/functions.py b/textile/functions.py index b04e9e6f..46387580 100644 --- a/textile/functions.py +++ b/textile/functions.py @@ -826,7 +826,7 @@ def span(self, text): """ qtags = (r'\*\*', r'\*', r'\?\?', r'\-', r'__', r'_', r'%', r'\+', r'~', r'\^') - pnct = ".,\"'?!;:" + pnct = ".,\"'?!;:(" for qtag in qtags: pattern = re.compile(r""" diff --git a/textile/tests/__init__.py b/textile/tests/__init__.py index 21e33b59..9e802a09 100644 --- a/textile/tests/__init__.py +++ b/textile/tests/__init__.py @@ -201,7 +201,11 @@ class TestKnownValues(): ('line of text\n\n leading spaces','\t

line of text

\n\n leading spaces'), - ('"some text":http://www.example.com/?q=foo%20bar and more text','\t

some text and more text

') + ('"some text":http://www.example.com/?q=foo%20bar and more text','\t

some text and more text

'), + + ('(??some text??)','\t

(some text)

'), + + ('(*bold text*)','\t

(bold text)

'), )