You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
I'm trying to configure remark-rehype, particularly for footnotes. parseMarkdown() from @nuxtjs/mdc directly exposes this ability, but looking at src/runtime/transformers/markdown.ts, it seems that I cannot do it because the config object is spread at the top rather than the bottom of the object passed to parseMarkdown() which means it gets overridden:
Is your feature request related to a problem? Please describe
I'm trying to configure
remark-rehype
, particularly for footnotes.parseMarkdown()
from@nuxtjs/mdc
directly exposes this ability, but looking atsrc/runtime/transformers/markdown.ts
, it seems that I cannot do it because the config object is spread at the top rather than the bottom of the object passed toparseMarkdown()
which means it gets overridden:content/src/runtime/transformers/markdown.ts
Lines 29 to 44 in c769bf8
Additionally, this is not exposed in the module configuration for
@nuxt/content
which results in a type error when attempting to declare the config.Describe the solution you'd like
I'd like for something like
rehypeOptions
to be exposed in the module config that is passed directly toparseMarkdown()
Describe alternatives you've considered
I tried directly configuring
@nuxtjs/mdc
rather than@nuxt/content
but given that it usesparseMarkdown()
directly it was never going to work.Additional context
The text was updated successfully, but these errors were encountered: