Skip to content

fix(hover): unify horizontal rule formatting to --- #20379

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

skewb1k
Copy link
Contributor

@skewb1k skewb1k commented Aug 4, 2025

Currently, hover documentation uses both ___ and --- as horizontal rule delimiters. While both styles are valid according to the GitHub Flavored Markdown Spec, the mixed usage seems accidental to me.

This PR change all horizontal breaks to --- because it is less ambiguous and already more common in rust-analyzer than ___.

I also believe that such consistency makes the code and tests a bit easier to maintain.

Replaces all `___` with `---` in hover documentation markups.

Both styles are valid per the GitHub Flavored Markdown spec,
but `---` is less ambiguous and already more widely used in rust-analyzer
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants