gitbucket-asciidoctor-plugin
gitbucket-asciidoctor-plugin copied to clipboard
code block rendering is incorrect on GitBucket 4.16
trafficstars
See gitbucket/gitbucket#1698.
Thanks for your report.
I think, this is an incompatibility with the newly introduced AdminLTE in gitbucket.
This issue is still present in current master with GitBucket 4.26.
If anybody has an idea how to fix it, I'd be very glad to accept your PR.
Here is a simple way to reproduce:
- Start a local test server with:
make localServer - Open http://localhost:8080
- Login with root/root
- Create a new repo with empty commit
- Create a new file
Test.adocwith following content
= Test
.Simple Java class
[source,java]
----
public class Sample {
}
----
This is a sample java code.
GitBucket 4.34.0 allows to use custom CSS, so I think that we can write the following to improve the display (ref: https://github.com/gitbucket/gitbucket/issues/1698#issue-255643612).
.content {
min-height: auto;
}
This is a temporary solution, but I hope it is helpful.