JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/remarkable/1.7.1/remarkable.min.js"></script>
<div id="1">
`x & &amp; y`
</div>
<div id="2">

</div>

JavaScript

var md = new Remarkable('full', {html: true});
var text = document.getElementById('1');
console.log(text.innerHTML)
text.innerHTML = md.render(text.innerHTML);
var text2 = document.getElementById('2');
text2.innerHTML = md.render("`z & &amp; w`");