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

Process chapter names as well #93

Open
VojtechStep opened this issue Aug 28, 2023 · 2 comments
Open

Process chapter names as well #93

VojtechStep opened this issue Aug 28, 2023 · 2 comments
Labels
question Further information is requested

Comments

@VojtechStep
Copy link

Chapter names are used for rendering the sidebar table of contents. When it contains latex markup, then it's rendered correctly in the chapter contents, but the sidebar has the unrendered latex source code.

The processing is a matter of adding chapter.name to the rendering queue in preprocess::KatexProcessor::run and then popping it back. Preferable it would also pass a flag to get_render_tasks so that every ToC entry doesn't have its own reference to the stylesheet header.

This issue is blocked on rust-lang/mdBook#2179, because otherwise the result is even worse than having raw latex in the sidebar.

@SichangHe
Copy link
Collaborator

Hi @VojtechStep. Given that you want this feature, I suggest that you implement it to your liking and I will help merge your PR.

@VojtechStep
Copy link
Author

I will submit a PR once the mentioned mdbook issue is solved 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants