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

How can I use a local copy of marked.min.js

halloleo opened this issue · comments

I have a local copy of marked.min.js (and its dependencies TextRenderer.js, Slugger.js, etc...), plus I load md-block locally as well:

<script type="module" src="scripts/md-block.js"></script>

How can I now tell md-block to use the local script/marked.min.js and not the CDN https://cdn.jsdelivr.net/npm/marked/src/marked.min.js?

commented

Check the Using different URLs for marked and DOMPurify section in the README.