Allow <code> in DocComments to render as a block in Hover response #75215
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As noticed in #75181,
<code>
from DocComment always renders inline even if it represents a block of code.Before:
![image](https://private-user-images.githubusercontent.com/611219/370202481-f425c386-7e35-4f48-8b49-a22b12de2ee4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODU1MTgsIm5iZiI6MTczOTk4NTIxOCwicGF0aCI6Ii82MTEyMTkvMzcwMjAyNDgxLWY0MjVjMzg2LTdlMzUtNGY0OC04YjQ5LWEyMmIxMmRlMmVlNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQxNzEzMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNjJlYzAxNmU2NTA2YTExYzQ4NzNhNjEwYjE4OGU1Yzg1NTAxYjRmZDJlNzQyYTk1YTEwMDJjMjYwYjI2M2U2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.XiuqFiIVBK03LEshQ_bmKGcAn8kOqjM9iXEHUAwcGbU)
After:
![image](https://private-user-images.githubusercontent.com/611219/370200421-6a68c9ef-2635-45e0-8ea3-985e081762dc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5ODU1MTgsIm5iZiI6MTczOTk4NTIxOCwicGF0aCI6Ii82MTEyMTkvMzcwMjAwNDIxLTZhNjhjOWVmLTI2MzUtNDVlMC04ZWEzLTk4NWUwODE3NjJkYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxOVQxNzEzMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ZTEyNzcxMDE0NThmNGUyZjMyNDMwMTM4NGNiZWM2YzcyZDU5YjUwZWQ0YjNlYTg0NWRkYjZmYWYxYjNjYzQwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.-Oy9J9-Ev-9tz3Xl_BDXpoWzXurWTL0nkW0g48xLx9w)
In order to have highlighting, we will need to pass along the code blocks
lang
attribute with the TaggedText.