LeaVerou / md-block

A custom element for rendering stylable (light DOM) Markdown

Home Page:https://md-block.verou.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

repeatString is not exported from helpers.js (any more, and marked was somehow out of sync...?)

dscotese opened this issue · comments

I solved this by hardcoding the version of marked to 5.0.3 in a copy of it that I added to my server. Line 11 of md-block.js now reads: marked: "https://cdn.jsdelivr.net/npm/marked@5.0.3/src/marked.min.js",

I did CTRL-F5 my browser page to try to fix the error but that didn't work and I don't understand why it didn't work. My best guess is that there is an extra layer of caching somewhere in the way Brave handles imported Javascript files.