Last active
January 17, 2024 10:34
-
-
Save dlebech/62b69ee7c9fdb53c63a6 to your computer and use it in GitHub Desktop.
Comment formatting in Gerrit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 :-) |
I think first step would be to star and comment on https://bugs.chromium.org/p/gerrit/issues/detail?id=9299 ticket if we want this to ever become a reality.
Just found myself here after frustration that I cannot format long url for nice display in comment
Just found myself here after frustration that I cannot format long url for nice display in comment
+1
+1
Just found myself here after frustration that I cannot format long url for nice display in comment
+1
+1
Code blocks don't work
+1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code blocks don't work