Created
July 25, 2023 13:56
-
-
Save rpaul-stripe/fb0a51c41baec931cb36e3301d6765b2 to your computer and use it in GitHub Desktop.
Example that demonstrates how to add a caption to a table in Markdoc
@benrudolphWSP update to add slots to the next.js plugin is incoming: markdoc/next.js#31 After that lands, you can add slots: true
to your tokenizer options in next.config.js
to make this work
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@benrudolphWSP I'm not super familiar with how the next.js plugin works, but I think you would want to have the
table
tag (the value of thetable
property inconfig
in this example) as a top-level export in amarkdoc/tags/table.markdoc.ts
file. I'm not sure if the next.js plugin supports slots yet, though.