Skip to content

Allow customizing remarkPlugins and rehypePlugins? #25

@karlhorky

Description

@karlhorky

Hi @cpojer ! What are your thoughts on allowing customizing remarkPlugins and rehypePlugins?

return await transform(code, {
rehypePlugins: [[rehypeRaw, { passThrough: nodeTypes }]],
// @ts-expect-error
remarkPlugins: [[shikiTwoslashFn, shikiOptions]],
});

I was looking for this just now to add remark-gfm for Markdown tables

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