Skip to content

Instantly share code, notes, and snippets.

@dlebech
Last active January 17, 2024 10:34
Show Gist options
  • Save dlebech/62b69ee7c9fdb53c63a6 to your computer and use it in GitHub Desktop.
Save dlebech/62b69ee7c9fdb53c63a6 to your computer and use it in GitHub Desktop.
Comment formatting in Gerrit
The documentation for Gerrit when it comes to formatting comments is quite lacking. Here is short list created by trial and error and looking at the source code in:
./gerrit-gwtexpui/src/main/java/com/google/gwtexpui/safehtml/client/SafeHtml.java
Lists:
* List item 1
* List item 2
- List item 1
- List item 2
Block quote:
> This will turn into a block quote.
> This will also turn into a block quote.
Code blocks:
This will become a code block because it has a leading space.
This will become a code block because there is a newline and a space on the next line.
Do you notice the leading space?
This line should also become a code block
because it uses tabs. But who does that?
That's it. Someone should create a markdown plugin :-)
@torbatamas
Copy link

Just found myself here after frustration that I cannot format long url for nice display in comment

+1

@RexGibson
Copy link

+1

@aydinugur
Copy link

Just found myself here after frustration that I cannot format long url for nice display in comment

+1

+1

@fodil-a
Copy link

fodil-a commented Oct 13, 2021

@marslo
Copy link

marslo commented Sep 28, 2022

Code blocks don't work

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment