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

markup/asciidocext: Add preserveTOC option #7702

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

helfper
Copy link
Contributor

@helfper helfper commented Sep 16, 2020

This PR adds an option to get pre-0.75 behaviour which would leave Asciidoctor's TOC intact and it's now always removed.

I left the current default as is, but it may be worth considering if that's the correct default because it's probably not compliant with the "principle of least astonishment" (see #7649 (comment)). People coming from Asciidoctor (and probably other site generators that use it) would expect to see the Asciidoctor's TOC in the body when they add the attribute :toc:.

@bep bep merged commit 8e553dc into gohugoio:master Sep 17, 2020
@helfper helfper deleted the preserve-adoc-toc branch September 17, 2020 19:52
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2022
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.

2 participants