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

Conserve <h1> headings in prose files #305

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

jonathanhefner
Copy link
Member

For prose files, such as README files, it is reasonable to assume that the file content includes an <h1> heading, and that the file name is mostly irrelevant. For example, the file railties/README.rdoc includes the heading "Railties -- Gluing the Engine to the Rails".

This commit removes the <h1> for a prose file's name, and preserves the file's original <h1> instead of making it a subheading of an <hgroup> as is done for module descriptions.

Before After
before after

For prose files, such as `README` files, it is reasonable to assume that
the file content includes an `<h1>` heading, and that the file name is
mostly irrelevant.  For example, the file `railties/README.rdoc`
includes the heading "Railties -- Gluing the Engine to the Rails".

This commit removes the `<h1>` for a prose file's name, and preserves
the file's original `<h1>` instead of making it a subheading of an
`<hgroup>` as is done for module descriptions.
@jonathanhefner jonathanhefner merged commit 6f393ab into rails:main Sep 14, 2023
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 this pull request may close these issues.

1 participant