appml / neutrinote

neutriNote - the original extensible Markdown + Math note app. Non-commerical. No lock-ins. Only 3 MB footprint & highly optimized. Designed for plaintext purists.
GNU General Public License v3.0
359 stars 24 forks source link

Markdown view not working #46

Open xmha97 opened 2 years ago

xmha97 commented 2 years ago

Markdown view not working

Popular Formats.md

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

appml commented 2 years ago

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 commented 2 months ago

@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:

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