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

Configure location of autogenerated table of contents #2

Closed
Neurrone opened this issue Jan 31, 2021 · 5 comments
Closed

Configure location of autogenerated table of contents #2

Neurrone opened this issue Jan 31, 2021 · 5 comments

Comments

@Neurrone
Copy link

I'd like to be able to have the autogenerated table of contents appear in the text itself rather than on the right

@hikerpig
Copy link
Owner

I think you can achieve this by inserting something like [[TOC]] somewhere in the markdown file, and hide the right TOC completely, for now.
Or is it OK for you that I provide an option like tocType: 'topOfContent' | 'rightSide' | false as built-in option?

@Neurrone
Copy link
Author

Apologies for the late reply.

What'd be the behaviour for tocType: 'topOfContent'? Would it be rendered just between the h1 for the note title and the actual contents?

@hikerpig
Copy link
Owner

Apologies for the late reply.

What'd be the behaviour for tocType: 'topOfContent'? Would it be rendered just between the h1 for the note title and the actual contents?

I guess so

@hikerpig
Copy link
Owner

@Neurrone Sorry for the late response, maybe you had no interest of this anymore. I make a crude version of this feature anyway.
The config is slightly different with the disscussion above. See #33 for screenshot and description.

@hikerpig
Copy link
Owner

This feature is available in v0.8.0

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

No branches or pull requests

2 participants