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 there an example somewhere to call contentlayer programmatically for user provided input? I have a use case where users writes mdx in an editor and I want to display a live preview for it. I don't know if I can still generate contentlayer artifacts (e.g., body.code) in memory for such dynamic input.
This discussion was converted from issue #441 on May 31, 2023 14:58.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there an example somewhere to call contentlayer programmatically for user provided input? I have a use case where users writes mdx in an editor and I want to display a live preview for it. I don't know if I can still generate contentlayer artifacts (e.g.,
body.code
) in memory for such dynamic input.Beta Was this translation helpful? Give feedback.
All reactions