9
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

updated at

Markdownのリンクを作成するブックマークレット

javascript:(function(){void(prompt(document.title,"["+document.title.replace(/[\[\]]/g,"\\$&").replace(/\\$/, "")+"]("+location.href+")"))})()

2秒で作った ( d(* ´∀`)b うそです)

以下の問題に対応

  • タイトル中に「[」「]」が含まれる場合に正常に動作しない
  • 末尾が「\」であった場合にリンクとして認識されない

(thanks to: @asahina_dev さん)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
9
Help us understand the problem. What are the problem?