Skip to content
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

Merged
merged 12 commits into from May 10, 2024
Merged

feat: tables #874

merged 12 commits into from May 10, 2024

Conversation

kellyjosephprice
Copy link
Collaborator

@kellyjosephprice kellyjosephprice commented May 7, 2024

PR App Fix RM-9021

🧰 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

@kellyjosephprice kellyjosephprice changed the base branch from next to beta May 7, 2024 21:44
@kellyjosephprice kellyjosephprice changed the base branch from beta to feat/code-tabs May 7, 2024 21:45
Base automatically changed from feat/code-tabs to beta May 7, 2024 21:56
.use(remarkMdx)
.data({ toMarkdownExtensions: [{ extensions: [compilers] }] })
.stringify(tree, opts);
return remark().use(remarkMdx).use(remarkGfm).use(compilers).stringify(tree, opts);
Copy link
Collaborator Author

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.

@kellyjosephprice kellyjosephprice marked this pull request as ready for review May 8, 2024 22:16
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}`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

docs/tables.md Outdated
.markdown-body .rdmd-table th {
}
.markdown-body .rdmd-table td {
}
```

<style>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't look like acorn is a big fan of this <style> tag:

image

but haaaay nice error messaging!

Copy link
Collaborator Author

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

@kellyjosephprice kellyjosephprice requested a review from a team May 9, 2024 17:52
Copy link
Collaborator

@jennspencer jennspencer left a 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 🥺

@kellyjosephprice kellyjosephprice merged commit ec439ef into beta May 10, 2024
10 of 11 checks passed
@kellyjosephprice kellyjosephprice deleted the feat/tables branch May 10, 2024 17:50
rafegoldberg pushed a commit that referenced this pull request May 10, 2024
## Version 6.75.0-beta.30

### ✨ New & Improved

* tables ([#874](#874)) ([ec439ef](ec439ef))

<!--SKIP CI-->
@rafegoldberg
Copy link
Contributor

This PR was released!

🚀 Changes included in v6.75.0-beta.30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants