Markdownでのリンクで別ウィンドウを開くようにする
参考文献
addEventListenerでonload処理: ゴチャ混ぜブログ
Markdown - リンク先を別ウィンドウで開く - Qiita
window.addEventListener("load", function(){ Array.prototype.forEach.call( document.querySelectorAll("a[href^='http']:not([href*='" + location.hostname + "'])"), function(node){ node.setAttribute('target','_blank'); } ); });