Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kkhomyakov3d/6d11a04bcbfe51758b22891205032dcb to your computer and use it in GitHub Desktop.
Save kkhomyakov3d/6d11a04bcbfe51758b22891205032dcb 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 :-)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment