You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I click and drag multiple lines in a PR to create a Review, then choose to create a suggestion in the Review, then the prefilled block of code gets wrapped in a suggestion block:
```suggestion
code
```
However if "code" contains three ticks already, this won't work. You could automatically detect that the selected code contains a triple tick upon clicking the add Suggestion button, and use four ticks for the suggestion block, which will resolve the issue.
The text was updated successfully, but these errors were encountered:
I'll clarify this is more commonly a problem when doing PR reviews for documentation repos, as these are *.md files or contain markdown, so the likelhood of nested ticks is alot more common. On first encountering this, the resulting mangled output is very confusing, and if you don't know about the rule for using additional ticks on outer wrapping ticks, then the solution is non-obvious.
The other thing to note: This isn't me as a user making a mistake in hand coding markdown. This is a built-in Github functionality that generates the invalid PR review suggestion markdown.
If I click and drag multiple lines in a PR to create a Review, then choose to create a suggestion in the Review, then the prefilled block of code gets wrapped in a suggestion block:
However if "code" contains three ticks already, this won't work. You could automatically detect that the selected code contains a triple tick upon clicking the add Suggestion button, and use four ticks for the suggestion block, which will resolve the issue.
The text was updated successfully, but these errors were encountered: