Skip to content
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

Outline numbering in preview & TOC #1089

Closed
internationils opened this issue Mar 20, 2024 · 4 comments
Closed

Outline numbering in preview & TOC #1089

internationils opened this issue Mar 20, 2024 · 4 comments

Comments

@internationils
Copy link

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
Copy link
Owner

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
Copy link
Owner

Maybe something like this is more ubiquitous:

image

@internationils
Copy link
Author

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
Copy link
Owner

RickStrahl commented Apr 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants