title: Detect link in string and insert anchor tag in Javascript
body: <p>I have a string like this:</p>
  
  <pre><code>let string = "This is some text, this [should be a link](https://www.google.com.ar)";
  </code></pre>
  
  <p>like markdown, but I don't want to use a whole markdown library cause the links are the only things I should look for.</p>
  
  <p>this string above should generate this:</p>
  
  <pre><code>"This is some text, this &lt;a href="https://www.google.com.ar" target="_blank"&gt;should be a link&lt;/a&gt;"
  </code></pre>
  
  <p>Edit: to be more precise, I don't want to use a markdown parse because I don't to replace all the other markdown stuff, just the links.</p>