-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TOC Navigator #62
Comments
The HUD window used by MultiMarkdown Composer seems nice. We might just implement a read-only (clickable) tree structure. |
Sound great! The read-only clickable tree structure is the most important part for me. |
I'd appreciate an optional clickable tree structure. The HUD from MMC is nice too, but what I frequently end up wanting is
Sadly the latter involves creating "<a name..." tags in the html for the "<a href..." tags to link to, and that's beyond the capabilities of a markdown parser that honors the spec (without getting ugly about your markdown code). |
I am not too sure if you are ware of it, but there is already a TOC feature available by using the |
I was hoping it would be straightforward to implement an
Any thoughts on approach? |
MacDown already uses a modified renderer for the main HTML content. As long as we don’t need to touch the parser it is perfectly fine to substitute something in Hoedown. The second part is tricky. It used to be that Hoedown manipulates the input before processing it, so the original position is already lost before it reaches the renderer. I’m not sure whether it is still the case now though. Either way, it is currently very difficult (if not impossible) to implement this without serious hackery. The people behind Hoedown is developing a version 4 that should resolve the issue, but that’s not nearly done as of now. My advice would be to just implement a read-only outline view for now, and maybe allow jumping to a header in preview. The rest can be filled in later. (Also please, please don’t hesitate to lend a hand to Hoedown itself if you have an idea in C. It is a very nice library with very clean, readable source.) |
When writing longer documents, I'd like to be able to jump quickly to a specific section of the document by just clicking on a link within a TOC (table of contents) navigator - this could be a heads up display or a side panel. The only Markdown Editor that currently implements this is MultiMarkdown Composer. This is the basic functionality I'd like to see. In a second phase, reorganising the content by dragging the headers within the TOC Navigator panel could be implemented.
The text was updated successfully, but these errors were encountered: