JSFiddle - React, Tailwind, and code Playground

HTML

<div>
   This is text inside a div. It has a reference to an [[Article]].
</div>

JavaScript

$("div").html(function(i, html) {
    return html.replace(/\[\[(.+?)\]\]/g, "<a href='/dictionary#$1'>$1</a>");
});