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

Request: make md_document() support TOC (table of content) #110

Open
TimTeaFan opened this issue Jan 15, 2023 · 0 comments
Open

Request: make md_document() support TOC (table of content) #110

TimTeaFan opened this issue Jan 15, 2023 · 0 comments

Comments

@TimTeaFan
Copy link

I'm using {hugodown} to render blog posts on my website. With longer blog posts it would be great to have the option to include a table of content (TOC), which is, to my understanding, not possible with hugodown::md_document().

I thought a viable workaround would be to replace hugodown::md_document() with rmarkdown::md_document(). However, this led to rendering problems.

I then took the relevant code from rmarkdown::md_document() and included it in my forked version of {hugodown} in the toc branch.

I do understand that {hugodown} is focused on a streamlined, highly minimal HTML output and adding a TOC might contradict this philosophy - in this case please close this issue. Otherwise I'd happily PR the branch.

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

1 participant