RickStrahl / MarkdownMonster

An extensible Markdown Editor, Viewer and Weblog Publisher for Windows
https://markdownmonster.west-wind.com
Other
1.58k stars 236 forks source link

Outline numbering in preview & TOC #1089

Closed internationils closed 5 months ago

internationils commented 6 months ago

when writing larger documents with many levels of headings, it's sometimes easy to get lost. It can be difficult to see in the preview which heading level you have (OK, can see that in the Markdown if synced). It is also difficult to see where in the overall structure you are. Outline numbering (like pandoc's "numbersections") would be great, both in the preview and (also optionally) in the TOC

image

RickStrahl commented 5 months ago

Can't you use the Document Outline side bar? Click on the second icon down on the left.

image

Maybe a useful feature would be to add the outline level to the tooltip (currently it only shows the ID of the header element in the output).

image

RickStrahl commented 5 months ago

Maybe something like this is more ubiquitous:

image

internationils commented 5 months ago

It's less about the heading level itself, but the numbering (enumerating) inside each level. Like "Event Syntax to PDF file" would be 1.3.1.5 I like the small numbers that you have, if they can count at each heading level that would be good enough, you can always look at the parent levels to see where you are. So next to "Event Syntax to PDF file" there would be a 5, etc.

RickStrahl commented 5 months ago

That kind of numbering is not something that's supported in Markdown at least not with headers (you can get something like that with lists). And I'm not sure how that would be useful in a bookmark type view.

That said it could be done perhaps with some custom processing that looks at all document headers and explicitly numbers them in the editor. Might be a good add-in feature, but not a core feature for the editor.