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

Respect content_includes_title frontmatter flag #454

Open
fwkoch opened this issue Aug 22, 2024 · 0 comments
Open

Respect content_includes_title frontmatter flag #454

fwkoch opened this issue Aug 22, 2024 · 0 comments

Comments

@fwkoch
Copy link
Contributor

fwkoch commented Aug 22, 2024

If MyST knows the title is duplicated in the frontmatter and in the content (e.g. if the title is plucked from a heading that is not at the top of the content, it will not be removed), MyST adds a content_includes_title: true flag to the frontmatter. This gives the author more flexibility about where to add the title (e.g. after an introductory statement or something - for example, https://github.com/ue12-p24/intro/blob/f4799080694aec8524c5a243f59e6a7d1c0495e6/notebooks/0-00-presentation-ue12-ue22-nb.md).

In these cases, myst-theme should probably not display the title in the title block. This does call into question what happens with the other stuff in the title block (e.g. authors, affiliations, etc).

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