tables not rendering properly with V2 Webpack loader
See original GitHub issueSubject of the issue
Tables do not render properly in V2 using the following markup:
| Tables | Are | Cool |
| ------------- | :-----------: | -----: |
| col 3 is | right-aligned | \$1600 |
| col 2 is | centered | \$12 |
| zebra stripes | are neat | \$1 |
I tested this in the latest V1 which is working as expected.
Your environment
- OS: macOS Catalina: 10.15.7
- Packages: @mdx-js/loader: 2.0.0-next.9 and @mdx-js/react: 2.0.0-next.9
- Env: Node: v14.16.1 and NextJS: 10.2.3
Steps to reproduce
Install the latest V2 release
{
"@mdx-js/loader": "2.0.0-next.9",
"@mdx-js/react": "2.0.0-next.9"
}
See this reproduction in a minimal NextJS app with the latest MDX V2 loader.
Expected behaviour
Should render a table with respective HTML tags.
Actual behaviour
Renders table markdown as a string in a p
tag.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Django tables2 not rendering properly - Stack Overflow
The table is displayed but not rendered properly. Instead of using PersonsTable(), if I use the objects collection, table is rendered properly.
Read more >Table is not rendering correctly when after dynamic div ...
When I call the creator method on document.ready or equvalient, there is no problem, the table renders perfectly. What I am missing? How...
Read more >Writing a Loader - webpack
Take the case of rendering a template file with data specified via loader ... Make sure the loader does not retain state between...
Read more >Loading Styles - SurviveJS
Webpack doesn't handle styling out of the box, and you will have to use loaders and plugins to allow loading style files. In...
Read more >HTML Table not rendering properly after firefox update to 3.0.1 ...
The display tag on the page is not rendering correctly anymore after the latest ... 2. 3. Actual Results: View the HTML page...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok, found something interesting. Looks like it was introduced in the latest version possibly, rolling back to
2.0.0-next.8
in that Codesandbox seems to fix things. However, rolling back in my Next repro doesn’t fix anything 😅. Not sure what’s going on there.🤦 that makes sense, I forgot this was GitHub specific, this fixes it! Thank you so much for your help looking into this! ❤️