LeaVerou / md-block

A custom element for rendering stylable (light DOM) Markdown
https://md-block.verou.me
MIT License
324 stars 17 forks source link

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

Closed halloleo closed 4 months ago

halloleo commented 8 months ago

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?

bejucoo commented 4 months ago

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