Commit dd6c3fdf authored by Randall Leeds's avatar Randall Leeds

Merge pull request #207 from csillag/develop

- Open links in a new window/tab.
- Fixed some Ubuntu instructions.
parents bee7fc39 4be1c6da
...@@ -562,7 +562,7 @@ class Hypothesis extends Annotator ...@@ -562,7 +562,7 @@ class Hypothesis extends Annotator
# so that it leaves the inserted links intact # so that it leaves the inserted links intact
safe_text = Handlebars.Utils.escapeExpression(text) safe_text = Handlebars.Utils.escapeExpression(text)
rendered_text = safe_text.replace /(https?:\/\/[^\s]+)/g, (match) -> rendered_text = safe_text.replace /(https?:\/\/[^\s]+)/g, (match) ->
"<a href=\"" + match + "\">" + match + "</a>" "<a target=\"_blank\" href=\"" + match + "\">" + match + "</a>"
annotation.rendered_text = rendered_text annotation.rendered_text = rendered_text
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment