How to use Goldmark Markdown (with extensions) as parser?

I found this issue: Remark plugins - extend markdown - how to (based off of docs)

I think it’s similar… I’m not super experienced with Javascript.

<script type="module">
  import remarkGfm from 'https://esm.sh/remark-gfm@3?bundle'

  CMS.registerRemarkPlugin(remarkGfm);
</script>
<script>
  CMS.registerPreviewStyle("style.css");
</script>

Here is how I’m importing the plugin. Perhaps I’m importing incorrectly?