Closed callumflack closed 2 years ago
@freekrai this is really nice template, thank you. Kind of standardises a number of approaches, love the option between remote versus local. I am genuinely confused about the component import though.
This uses Stripe’s Markdoc for rendering so it’s a tad different.
You’d have to add components via https://github.com/freekrai/remix-docs/blob/main/app/components/Markdown.tsx and https://github.com/freekrai/remix-docs/blob/main/app/utils/markdoc.server.ts
I'm working on some docs around this stack which will include a section on markdoc and adding more components.
Ah yes, my bad. Thanks 🙏🏻
MarkDoc docs are solid, might only need a quick overview of it.
Yeah markDoc is nice
Have you experienced this bug with the latest version of the template?
Yes
Steps to Reproduce
Import a component form the
app/components
directory into an.mdx
file.Expected Behavior
Import and render a component.
Actual Behavior
It renders a text string, not an imported component.