mirror of https://github.com/status-im/codimd.git
Updated postProcess, link should open in new window or tab
This commit is contained in:
parent
2463a5126b
commit
bb13a98c13
|
@ -207,6 +207,10 @@ function postProcess(code) {
|
|||
result.find("iframe").replaceWith(function () {
|
||||
return "<noiframe>" + $(this).html() + "</noiframe>"
|
||||
});
|
||||
//link should open in new window or tab
|
||||
result.find('a:not([target])').attr('target', '_blank');
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue