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

Markdown view not working #46

Open
xmha97 opened this issue Sep 12, 2022 · 2 comments
Open

Markdown view not working #46

xmha97 opened this issue Sep 12, 2022 · 2 comments

Comments

@xmha97
Copy link

xmha97 commented Sep 12, 2022

Markdown view not working

Popular Formats.md

2022_09_12_07_22_48.mp4
@xmha97 xmha97 changed the title Table is not displayed Markdown view not working Sep 12, 2022
@appml
Copy link
Owner

appml commented Sep 12, 2022

Not sure why. Try copy and paste below table👇

First Header Second Header
Content Cell Content Cell
Content Cell Content Cell.

You should see:

Screenshot_20220912-144052
Screenshot_20220912-144108

@GfEW
Copy link

GfEW commented Sep 10, 2024

@xmha97

Markdown view not working

Popular Formats.md

2022_09_12_07_22_48.mp4

I've been able to reproduce this behavior, although sometimes, the markdown table is displayed correctly. Apparently, the underlying bug is related to the text cursor position in markup view, as follows:

  • (a) if the markup cursor sits at the front of a table line (i. e. before the first | in a line), the table isn't rendered
  • (b) if the markup cursor sits at the end of a table line (i. e. after the last | in a line), the table is rendered but with an additional bogus empty column appended at the end of the table
  • (c) if the markup cursor sits anywhere between (a) and (b), the table is rendered correctly.

Note that in your screen recording, the cursor indeed sits at pos0 of the first table line, so it behaves according to case (a).

Also note that the "markup cursor position" does not reliably reflect the latest "edit cursor position" but may still sit at an older position. Sometimes, when the cursor is moved (in edit mode) and then markup view is activated, the "markup cursor position" isn't updated properly. In any case, the bug depends on the "markup cursor position".

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

No branches or pull requests

3 participants