would be nice if we had a plugin for showing a sidekick of the structure of a markdown doc, parsing at least the header lines that begin with a number of #'s.
If you set the folding mode for markdown files to "indent", then you can sort of use the Outline sidekick. It's not very good, but maybe good enough for what you're doing?
.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I put a quick hack in SVN, MarkdownSidekick. It only finds header lines at the moment, but it does find both kinds, those starting with # and those that are underlined with = or -. Let me know if it's useful. I'm not sure what else would be worth having in the sidekick tree for markdown files.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Nice ! Can you make it so that the level n+1 headers are children of their level n headers in a tree structure? After that you can get rid of the # in the tree nodes.
Last edit: Alan Ezust 2019-12-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hierarchy works but if my document doesn't have hierarchy (i.e. 4 level1 titles and no children under any), it seems not to parse at all. I emailed you a test case.
Last edit: Alan Ezust 2019-12-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you set the folding mode for markdown files to "indent", then you can sort of use the Outline sidekick. It's not very good, but maybe good enough for what you're doing?
.
I put a quick hack in SVN, MarkdownSidekick. It only finds header lines at the moment, but it does find both kinds, those starting with # and those that are underlined with = or -. Let me know if it's useful. I'm not sure what else would be worth having in the sidekick tree for markdown files.
Nice ! Can you make it so that the level n+1 headers are children of their level n headers in a tree structure? After that you can get rid of the # in the tree nodes.
Last edit: Alan Ezust 2019-12-06
Sure, give it a try now.
hierarchy works but if my document doesn't have hierarchy (i.e. 4 level1 titles and no children under any), it seems not to parse at all. I emailed you a test case.
Last edit: Alan Ezust 2019-12-06