-
-
Save dlebech/62b69ee7c9fdb53c63a6 to your computer and use it in GitHub Desktop.
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 :-) |
@edanilenko ...
Are you requesting strikethrough? Telling us it can be added but not telling us how? If the former, I'm pretty sure @dlebech isn't involved in making Gerrit, otherwise he wouldn't need "trial and error and looking at the source code". If the latter, well... that's just mean.
That's it. Someone should create a markdown plugin :-)
Better yet: CommonMark ;)
Also nowadays you can use emojis everywhere (except GitHub comments). Even if you are using Jenkins and Gerrit Trigger Plugin to send feedback from CI (i.e. add ❌ to Build failed
message)
Code blocks don't work
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
strike