Fix nuxt3 issues (#1035)

* Fix nuxt3 issues

* fix unintentional npm use
This commit is contained in:
Geometrically
2023-03-10 14:51:48 -07:00
committed by GitHub
parent 3825575f70
commit ba220abbbf
6 changed files with 822 additions and 826 deletions

View File

@@ -103,8 +103,9 @@ export const md = (options = {}) => {
if (index !== -1) {
const src = token.attrs[index][1]
const url = new URL(src)
try {
const url = new URL(src)
const allowedHostnames = [
'i.imgur.com',
'cdn-raw.modrinth.com',