Why not trying https://github.com/JPro-one/markdown-javafx-renderer? It is based on flexmark-java.
Example application: https://github.com/jpro-one/markdown-javafx-renderer/blob/master/example/src/main/java/com/sandec/mdfx/ExampleMDFX.java
MDFXNode mdfx = new MDFXNode("your-markdown");
I have spent some hours under this issue and via lots of testing I found that when you put a white border around the aztec code image, then it works quite well and fast :-) I use it in my app: //for the barcode bitmap (string) scanning: implementation 'com.google.zxing:core:3.3.3' //FOR THE CAMERA SCANNING: implementation 'com.journeyapps:zxing-android-...