-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
New Sync-Scroll out-of-sync case. #5808
Comments
Looks like the issue stems from the use of MultiMarkdown Tables if you turn off that feature then the sync scrolling works fine. edit: Correction, this is due to the way list mappings are handled, typically lists are not allowed inside tables, so having multimarkdown tables makes list handling more complicated. edit2: There is also a secondary issue with the sync scrolling. Html blocks don't get the source lines attached properly because markdown-it doesn't wrap them with anything. I'm going to create a separate ticket to track that. We'll probably need to update the source_map script to be aware of MultiMarkdown Tables to fix this bug. |
Great! |
In addition, there is another cause. Markdown-it-multimd-table has a problem that incorrect line numbers (map[]) are assigned for nested blocks if
|
Good job, @CalebJohn. BTW, since we cannot tell when the upstream is fixed, we have to take a workaround. But, currently, I cannot think of an easy fix... |
I think we can apply a patch to that library for now. I know Laurent used to do that for some other packages, but it seems like that's not the case anymore. |
It sounds nice to me. It could keep our code clean. |
There's a bug in the multimarkdown-table library such that it isn't mapping tokens to line numbers properly and isn't correctly setting the markdown "level" (depth) of a token. This patch was originally submitted for review upstream, but as of now has not been accepted. ref: redbug312/markdown-it-multimd-table#42
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions. |
Not stale (almost fixed). |
Hello, I tried today with:
|
Thanks for letting us know @antoniopaolini, this bug was with the multi-md table package that Joplin uses. I applied a "patch", but it looks like it was lost during the release process. Fortunately the upstream developer has released a new version based on my changes, so we can remove the "patch" and just update it. |
I just downloaded the new 2.7.12. I tried with all my "problematics" notes and everthing is ok. Thanks! |
Hello,
I have a note that go crazy with the new Sync-Scroll.
It is a table, a very long table (but I made also a textbench file for debug), with some empty row at the end (I use to add empty lines at the end and populate it when necessary).
It happens with Joplin 2.6.2 (prod, win32).
With the old 2.5.12 the behavior was "normal", but with 2.6.2 this note is TOTALLY out of sync; I should scroll all the viewer pane before the editor moves.
Environment
Joplin version: Joplin 2.6.2 (prod, win32) Revisione: 5a82f5d - Portable package
Platform: Windows
OS specifics: Windows 10 Pro 1903
Steps to reproduce
Import and open the note "file_per_bug_sync-scroll.md" attached
Add some lines like in the pictrure (I copy and paste the selected lines)
Scroll the editor pane and the viewer pane
The effect is much more evident with the second file, "Diario - 2021 (working copy).md"; if you scroll a little in the editor pane
the preview pane scroll to the end, and the table is very long!
Diario - 2021 (working copy).md
file_per_bug_sync-scroll.md
The text was updated successfully, but these errors were encountered: