Skip to content

Syntax highlighting via Shiki requires additional configuration #159

@adamdehaven

Description

@adamdehaven

@farnabaz I'm working on implementing the <MDCRenderer> via our changes in #154 and am running into an issue whereby I cannot get wasm to work properly on Cloudflare Pages.

Small reproduction repo: https://github.com/adamdehaven/mdc-wasm-repro

I enabled experimental wasm support in my nuxt.config.ts nitro.experimental.wasm: true (I think this is needed?) but then when using wrangler dev preview chokes.

I think I need to somehow include the shiki/onig.wasm locally in my project based on the Shiki docs, but unsure how/where to do so.

Shiki Cloudflare Workers and wasm

Would you be able to provide some guidance? The markdown itself renders; however, syntax highlighting obviously is not currently working for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions