Cant see whats wrong with this code for Markdown Previewer

Use the import instead.

import * as marked from "https://cdn.skypack.dev/marked@4.0.4";