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

Multiple level heading #119

Open
alemangui opened this issue Jan 10, 2025 · 1 comment
Open

Multiple level heading #119

alemangui opened this issue Jan 10, 2025 · 1 comment

Comments

@alemangui
Copy link
Contributor

alemangui commented Jan 10, 2025

Hello and thanks for this great library.

I'd like to make use of different heading levels than the current default of h1.

One short-term option could be to be able to configure the heading level used by Trix in django-prose, as described in this Trix issue : basecamp/trix#972, where they mention a conf key like :

Trix.config.blockAttributes.heading1.tagName = 'h2';

Is there a way to set it in django-prose ?


Ideally though, we could choose the heading level for SEO and accessibility purposes. This PR contains an interesting layout that I think could be very useful : basecamp/trix#861

Image

@alemangui
Copy link
Contributor Author

For info we created this PR in our project which allowed us to add the heading levels. If you think a similar approach could be baked into the library let me know, maybe I could help develop it.

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