Skip to content

Conversation

@DavidOliver
Copy link
Contributor

@DavidOliver DavidOliver commented Jan 24, 2026

Fixes #2189

Note: this modifies templates, so please check. Thanks.


Adds a template function to add <wbr> after fullstops in module name titles, and uses it:

  • twice in the HTML templates (module name on the API reference page in addition to the module page title);
  • once in the EPUB templates.

The ebook reader I've tested with successfully breaks words on <wbr>.

Copying a module name from these headings into a text editor is still working normally for me.

Image

Also provides smaller main heading font sizes which apply when the content container is <= 600px in width.

Before and after:

Image

@github-actions
Copy link

github-actions bot commented Jan 24, 2026

@josevalim
Copy link
Member

Beautiful. I will merge and push a bit more of tests. :)

@josevalim josevalim merged commit 8611a16 into elixir-lang:main Jan 24, 2026
6 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Long module names cause title display issues (solution included)

2 participants