neutrinote icon indicating copy to clipboard operation
neutrinote copied to clipboard

Markdown view not working

Open xmha97 opened this issue 2 years ago • 2 comments

Markdown view not working

Popular Formats.md

https://user-images.githubusercontent.com/23485114/189565657-55b6ebe2-dcda-4cb0-b51a-5388989e8a4b.mp4

xmha97 avatar Sep 12 '22 02:09 xmha97

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

appml avatar Sep 12 '22 18:09 appml

@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".

GfEW avatar Sep 10 '24 13:09 GfEW