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
merged 5 commits into from Apr 1, 2019

Conversation

RLesur
Copy link
Contributor

@RLesur RLesur commented Jan 14, 2018

Here is a proposition to issue #1235.

image

Romain Lesur

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

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
@RLesur
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!

@mattaws
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 April 1, 2019 19:23
RLesur and others added 4 commits April 1, 2019 16:05
@yihui yihui force-pushed the bugfix/toc-indent-level3-heading branch from 7de9c16 to 07213d4 Compare April 1, 2019 21:09
@yihui yihui added this to the v1.13 milestone Apr 1, 2019
@yihui yihui merged commit 67a36c6 into rstudio:master Apr 1, 2019
@yihui
Copy link
Member

yihui commented Apr 1, 2019

@mattaws Please try the development version here. Thanks!

@RLesur RLesur deleted the bugfix/toc-indent-level3-heading branch April 4, 2019 12:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants