Skip to content

Conversation

the-mikedavis
Copy link
Member

@the-mikedavis the-mikedavis commented Feb 21, 2024

tree-sitter-rust recently added nodes for doc comments and we can inject in markdown. This is waiting on a few fixes/refactors in tree-sitter/tree-sitter-rust#212

Closes #3391

@the-mikedavis the-mikedavis added S-waiting-on-pr Status: This is waiting on another PR to be merged first A-language-support Area: Support for programming/text languages labels Feb 21, 2024
The test changes are needed because of the changes to comment parsing.
The `1..36` to `1..37` change is because line comments now consume the
newline.
@the-mikedavis the-mikedavis force-pushed the rust-markdown-doc-comments branch from 975d8b2 to ec27d07 Compare February 22, 2024 16:14
@the-mikedavis the-mikedavis added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-pr Status: This is waiting on another PR to be merged first labels Apr 5, 2024
@the-mikedavis
Copy link
Member Author

tree-sitter/tree-sitter-rust#212 was merged upstream. We might want to try to solve #6491 before merging this though: it's fairly easy to reproduce once you inject markdown into line comments and annoying when it happens if you have comments styled with italics.

@the-mikedavis
Copy link
Member Author

Closing in favor of #12972 which includes this change (and solves #6491)

@the-mikedavis the-mikedavis deleted the rust-markdown-doc-comments branch February 27, 2025 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inject markdown syntax for rust doc_comments
1 participant