-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: tables #874
feat: tables #874
Conversation
417dec7
to
a5f219b
Compare
a5f219b
to
c13d997
Compare
.use(remarkMdx) | ||
.data({ toMarkdownExtensions: [{ extensions: [compilers] }] }) | ||
.stringify(tree, opts); | ||
return remark().use(remarkMdx).use(remarkGfm).use(compilers).stringify(tree, opts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jennspencer just found out the way I was configuring custom compilers wouldn't override existing ones.
errors/mdx-syntax-error.ts
Outdated
const { message, line, column, url } = error; | ||
|
||
const messages = [ | ||
`Uh oh! We ran into a syntax error at { line: ${line}, column: ${column} }, please see this url for more details: ${url}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/tables.md
Outdated
.markdown-body .rdmd-table th { | ||
} | ||
.markdown-body .rdmd-table td { | ||
} | ||
``` | ||
|
||
<style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not so much the script, but css. I imagine that MDX looked at trying to detect and parse css, and just table flipped
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's so beautiful 🥺
This PR was released!🚀 Changes included in v6.75.0-beta.30 |
🧰 Changes
MDX Tables!
I also took the opportunity to start an MDX components doc, and more excitingly, a nicer compilation error!
✅ TODO
After poking at this a bunch, I think we should punt on doing feature detection. It seems best that that be done as a singular after we get everything else working.
🧬 QA & Testing