Skip to content

Commit 68e4a67

Browse files
committed
Improve handling of html tags in question texts
1 parent ab5ee03 commit 68e4a67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jupyterquiz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
All files in the package are distributed under the MIT License
1212
'''
1313

14-
__version__ = '2.9.5'
14+
__version__ = '2.9.5.1'
1515
from .dynamic import display_quiz, capture_responses

jupyterquiz/js/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function jaxify(string) {
2626
loc2 = mystring.search(/([^\\]|^)(\$\$)/);
2727
}
2828
// Replace markdown links
29-
mystring = mystring.replace(/<(.*?)>/g, '<a href="$1" target="_blank" class="Link">$1</a>');
29+
mystring = mystring.replace(/<http(.*?)>/g, '<a href="http$1" target="_blank" class="Link">http$1</a>');
3030
mystring = mystring.replace(/\[(.*?)\]\((.*?)\)/g, '<a href="$2" target="_blank" class="Link">$1</a>');
3131
return mystring;
3232
}

0 commit comments

Comments
 (0)