Menu

#394 Markdown SideKick

open
nobody
None
5
2019-12-06
2019-10-30
Alan Ezust
No

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.

Discussion

  • Dale Anson

    Dale Anson - 2019-12-05

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

     
  • Dale Anson

    Dale Anson - 2019-12-06

    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.

     
  • Alan Ezust

    Alan Ezust - 2019-12-06

    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
  • Dale Anson

    Dale Anson - 2019-12-06

    Sure, give it a try now.

     
  • Alan Ezust

    Alan Ezust - 2019-12-06

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.