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

The title_format configuration option assumes restructuredtext #609

Closed
SmileyChris opened this issue Jun 7, 2024 · 0 comments · Fixed by #610
Closed

The title_format configuration option assumes restructuredtext #609

SmileyChris opened this issue Jun 7, 2024 · 0 comments · Fixed by #610

Comments

@SmileyChris
Copy link
Contributor

SmileyChris commented Jun 7, 2024

The correct solution to my issue in #607 is to use the title_format configuration option.

The only problem is that this option assumes that you want:

<formatted_title>
<config.underscores[0] * formatted_title_length>
<rendered content>

But for markdown, we only want:

# <formatted_title>
<rendered content>

The builder however doesn't have a concept of markdown or restructuredtext.

I think the most compatible solution would be to use the markdown method if the template ends with '.md', otherwise use the current method, correct?

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

Successfully merging a pull request may close this issue.

1 participant