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

Delete comment prefix when lazy fetching #2584

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

vinistock
Copy link
Member

Motivation

Closes #2582

I forgot to delete the leading # and possible blank space when we're fetching comments lazily. Since the documentation is rendered as markdown, it makes everything appear as h1 tags, which are huge.

Implementation

Just added the prefix delete, exactly like we do in eager comment fetching.

Automated Tests

Added a test to ensure we don't regress.

@vinistock vinistock added bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes labels Sep 20, 2024
@vinistock vinistock self-assigned this Sep 20, 2024
@vinistock vinistock requested a review from a team as a code owner September 20, 2024 12:51
@vinistock vinistock requested a review from andyw8 September 20, 2024 12:51
@vinistock vinistock force-pushed the vs-delete-comment-prefix-when-lazy-fetching branch from f01e8fc to e86cf3b Compare September 20, 2024 13:12
@vinistock vinistock force-pushed the vs-delete-comment-prefix-when-lazy-fetching branch from e86cf3b to e704977 Compare September 20, 2024 13:27
@vinistock vinistock merged commit db50fc3 into main Sep 20, 2024
37 checks passed
@vinistock vinistock deleted the vs-delete-comment-prefix-when-lazy-fetching branch September 20, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation comments are rendered in h1
2 participants