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

table it_generates_equivalent_table_markdown lost alignments #70

Closed
OceanBelongsToMe opened this issue May 14, 2024 · 1 comment · Fixed by #76
Closed

table it_generates_equivalent_table_markdown lost alignments #70

OceanBelongsToMe opened this issue May 14, 2024 · 1 comment · Fixed by #76
Labels
question Further information is requested

Comments

@OceanBelongsToMe
Copy link

OceanBelongsToMe commented May 14, 2024

in test the method it_generates_equivalent_table_markdown:

let original_table_markdown = indoc!(
"|1 |2 |3 |4 |5 |6 |7 |
| :---------------: | :--------------------: | :------: | :------: | :-----------: | :--------: | :------: |
| col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is |
| col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is |
| col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is |
| col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is |
| col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is |
| col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | col 3 is | |"
);
will remove '-',only ':' exists,like this:

|1|2|3|4|5|6|7|\n|:|:|:|:|:|:|:|\n|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|\n|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|\n|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|\n|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|\n|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|\n|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is|col 3 is||
@Byron Byron added the question Further information is requested label May 14, 2024
@Byron
Copy link
Owner

Byron commented May 14, 2024

Could you express this in a test-case so that the expectation becomes clear? Doing so would also be a first step towards a fix.
Thanks

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

Successfully merging a pull request may close this issue.

2 participants