Skip to content

Conversation

@jaimeiniesta
Copy link
Contributor

@jaimeiniesta jaimeiniesta commented Aug 20, 2025

As reported in the latest Rocket Validator report, post titles had <p> tags inside <h1> tags, which is not allowed.

Captura de pantalla 2025-08-20 a las 19 40 37

As the post titles come from NimblePublisher they contain <p> tags, so I added a quick helper to strip those p tags where needed.

Maybe we should review if we instead want the post titles to be simple strings, without HTML tags.

Update: we need to keep tags in titles as long as we use code blocks in the titles, as in https://github.com/elixirschool/elixirschool/blob/main/posts/2019-02-06-til-send-after.md?plain=1#L6

@jaimeiniesta jaimeiniesta requested a review from a team as a code owner August 20, 2025 17:45
@jaimeiniesta jaimeiniesta added bug Something isn't working rocket validator Related with Rocket Validator HTML and accessibility reports labels Aug 20, 2025
Introduces a helper to strip p tags where needed
@doomspork doomspork added this pull request to the merge queue Aug 21, 2025
Merged via the queue into main with commit 65cc1b9 Aug 21, 2025
5 checks passed
@doomspork doomspork deleted the fix-html-p-inside-h1 branch August 21, 2025 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working rocket validator Related with Rocket Validator HTML and accessibility reports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants