question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tables not rendering properly with V2 Webpack loader

See original GitHub issue

Subject 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:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
souporseriouscommented, May 26, 2021

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.

0reactions
souporseriouscommented, May 26, 2021

🤦 that makes sense, I forgot this was GitHub specific, this fixes it! Thank you so much for your help looking into this! ❤️

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found