Add custom navigation bindings to MarkdownViewer with ToC? #2666
Unanswered
TomJGooding
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to add custom navigation bindings to the builtin
MarkdownViewer
widget in my app. The problem is that this requires handling both the bindings for scrolling the markdown content and the cursor movements for the Table of Contents.I've hacked together the code below which seems to work, but I am wondering if there might be a better way of doing this (that doesn't require rebuilding my own version of the MarkdownViewer in a custom widget)?
Many thanks as always for any advice!
Beta Was this translation helpful? Give feedback.
All reactions