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

Indent Level Headings in TOC (#1235) #1243

merged 5 commits into from Apr 1, 2019


Copy link

RLesur commented Jan 14, 2018

Here is a proposition to issue #1235.


Romain Lesur

@RLesur RLesur changed the title Indent Level Headins in TOC (#1235) Indent Level Headings in TOC (#1235) Jan 14, 2018

This comment has been minimized.

Copy link

yihui commented Jan 25, 2018

Thanks a lot! I was wonder if there was a more parsimonious way to write the CSS that makes use of the natural parent-child relationships of different levels of headers, instead of relying on the attribute [data-tag="X"].

RLesur added a commit to RLesur/rmarkdown that referenced this pull request Jan 26, 2018

This comment has been minimized.

Copy link
Contributor Author

RLesur commented Jan 26, 2018

I modified the PR. It now uses parent-child relationships, but the code is not very parsimonious 🙄
Sorry, I'm not a CSS expert!


This comment has been minimized.

Copy link

mattaws commented Apr 1, 2019

is this still open? if it is, is there a workaround to indenting 3rd/4th level?

@yihui yihui removed the request for review from jjallaire Apr 1, 2019
RLesur and others added 4 commits Jan 14, 2018
…se it forces all items to have the same amount of indent; then define different indent for each level of sub-items
@yihui yihui force-pushed the RLesur:bugfix/toc-indent-level3-heading branch from 7de9c16 to 07213d4 Apr 1, 2019
@yihui yihui added this to the v1.13 milestone Apr 1, 2019
@yihui yihui merged commit 67a36c6 into rstudio:master Apr 1, 2019

This comment has been minimized.

Copy link

yihui commented Apr 1, 2019

@mattaws Please try the development version here. Thanks!

@RLesur RLesur deleted the RLesur:bugfix/toc-indent-level3-heading branch Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.