diff options
author | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-18 15:26:12 +0800 |
---|---|---|
committer | Yu-Jie Lin <livibetter@gmail.com> | 2013-08-18 15:26:12 +0800 |
commit | d92b80377adb86b0e5dc688d5e2be4bb44ec7ee0 (patch) | |
tree | 10703337e882e99cb00d035f916074b3134c8d71 /smartypants.py | |
parent | 4d28166cae3eec1aec8e6f6f78aa25ee4f3d1cbd (diff) | |
download | smartypants-d92b80377adb86b0e5dc688d5e2be4bb44ec7ee0.tar.gz |
add style element to skipped list, remove doctest on the list
Diffstat (limited to 'smartypants.py')
-rwxr-xr-x | smartypants.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/smartypants.py b/smartypants.py index 9185e80..6cce92c 100755 --- a/smartypants.py +++ b/smartypants.py @@ -57,7 +57,7 @@ Attr = _Attr() default_smartypants_attr = Attr.set1 -tags_to_skip = ['pre', 'samp', 'code', 'tt', 'kbd', 'script', 'math'] +tags_to_skip = ['pre', 'samp', 'code', 'tt', 'kbd', 'script', 'style', 'math'] def _tags_to_skip_regex(tags=None): @@ -65,8 +65,6 @@ def _tags_to_skip_regex(tags=None): Convert a list of skipped tags into regular expression >>> f = _tags_to_skip_regex - >>> print(f().pattern) - <(/)?(pre|samp|code|tt|kbd|script|math)[^>]*> >>> print(f(['foo', 'bar']).pattern) <(/)?(foo|bar)[^>]*> """ |