Skip to content

Commit bb13a98

Browse files
committed
Updated postProcess, link should open in new window or tab
1 parent 2463a51 commit bb13a98

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

public/js/extra.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ function postProcess(code) {
207207
result.find("iframe").replaceWith(function () {
208208
return "<noiframe>" + $(this).html() + "</noiframe>"
209209
});
210+
//link should open in new window or tab
211+
result.find('a:not([target])').attr('target', '_blank');
212+
return result;
213+
}
210214
}
211215
}
212216
}

0 commit comments

Comments
 (0)