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

[JupyterLab 3.6.2] Too much whitespace in markdown tables #14301

Open
Firestar-Reimu opened this issue Mar 31, 2023 · 4 comments
Open

[JupyterLab 3.6.2] Too much whitespace in markdown tables #14301

Firestar-Reimu opened this issue Mar 31, 2023 · 4 comments
Labels

Comments

@Firestar-Reimu
Copy link

The first 3 tables are badly rendered. Cash $14400 is seperated to 2 lines and use much whitespace on the left side.

I don't know why the 4th table is good

Screenshot_20230331_143633

|   Assets   | Liabilities & Equity |
| :------------: | :------------------: |
| Cash $\$14400$ | Shares owed $\$9000$ |
|        |  Equity $\$5400$  |


|   Assets   | Liabilities & Equity |
| :-------------: | :------------------: |
| Shares $\$9000$ |  Loan $\$3600$   |
|         |  Equity $\$5400$  |


|   Assets   | Liabilities & Equity |
| :------------: | :-------------------: |
| Cash $\$14400$ | Shares owed $\$500P$ |
|        | Equity $\$14400-500P$ |


|  Assets   | Liabilities & Equity |
| :-----------: | :------------------: |
| Shares $500P$ |  Loan $\$3600$   |
|        | Equity $500P-\$3600$ |

ArchLinux
Python 3.10.10
Edge Version 111.0.1661.62 (Official build) (64-bit)
jupyter_client 8.1.0
jupyter_core 5.3.0
jupyter-events 0.6.3
jupyter_packaging 0.12.3
jupyter_server 2.5.0
jupyter_server_fileid 0.8.0
jupyter_server_terminals 0.4.4
jupyter_server_ydoc 0.8.0
jupyter-ydoc 0.2.3
jupyterlab 3.6.2
jupyterlab-code-formatter 1.6.0
jupyterlab-pygments 0.2.2
jupyterlab_server 2.21.0

@welcome
Copy link

welcome bot commented Mar 31, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to new issues that need triage label Mar 31, 2023
@fcollonval
Copy link
Member

I guess the last table will overflow if you add \$ in the second row first column as in the other tables; something like:

|  Assets   | Liabilities & Equity |
| :-----------: | :------------------: |
| Shares $\$500P$ |  Loan $\$3600$   |
|        | Equity $500P-\$3600$ |

@Firestar-Reimu
Copy link
Author

Firestar-Reimu commented Mar 31, 2023

But this would not:

|  Assets   | Liabilities & Equity |
| :-----------: | :------------------: |
| Shares $\$500$ |  Loan $\$3600$   |
|        | Equity $500P-\$3600$ |

Screenshot_20230331_231403

the last table will overflow if you add \$ in the second row first column as in the other tables;

And this should not happen

@fcollonval
Copy link
Member

Thanks for testing.

I would not have expected it to still be rendered as you expected.

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

No branches or pull requests

3 participants