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

TOC is always outdated when formatting with prettier and tabwidth 4 #1297

Open
Andy-Dihong-Luo opened this issue Jun 6, 2023 · 2 comments
Open
Labels
Area: Table of contents Pertaining to table of contents (TOC generation and detection, related heading operations). Needs Discussion We haven't decided what to do.

Comments

@Andy-Dihong-Luo
Copy link
Contributor

What's the problem

The TOC never updates on save when enabling prettier and adjust the tabwidth to 4. Seems to conflict with Prettier.
image

@yzhang-gh
Copy link
Owner

That's because we didn't support such a format. We support different sizes of indentation with the option list.indentationSize, but both of the choices have only 1 space after the list marker.

@yzhang-gh yzhang-gh added Needs Discussion We haven't decided what to do. Area: Table of contents Pertaining to table of contents (TOC generation and detection, related heading operations). labels Jun 7, 2023
@Andy-Dihong-Luo
Copy link
Contributor Author

Understandable. Hope more supported formats in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Table of contents Pertaining to table of contents (TOC generation and detection, related heading operations). Needs Discussion We haven't decided what to do.
Projects
None yet
Development

No branches or pull requests

2 participants