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 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 the table
property in config
in this example) as a top-level export in a markdoc/tags/table.markdoc.ts
file. I'm not sure if the next.js plugin supports slots yet, though.
@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
Sorry for my ignorance, but how and where would I add this to the markdoc-starter? Possibly in /markdoc/tags?