JavaFX WebView and markdown rendering...

Tom Schindl tom.schindl at bestsolution.at
Fri Jan 5 20:03:12 UTC 2024


What OS?

Tom

Gesendet von Outlook für iOS<https://aka.ms/o0ukef>
________________________________
Von: openjfx-discuss <openjfx-discuss-retn at openjdk.org> im Auftrag von Davide Perini <perini.davide at dpsoftware.org>
Gesendet: Friday, January 5, 2024 6:45:34 PM
An: openjfx-discuss at openjdk.org <openjfx-discuss at openjdk.org>
Betreff: JavaFX WebView and markdown rendering...

Hi all,
I have a simple javafx.scene.web.WebView

code is as simple as this:


WebView wv = new WebView();
wv.getEngine().load(webUrl);


Alert alert = createAlert(title, header, alertType);
alert.getDialogPane().setContent(wv);
alert.showAndWait();



As you can see the webview loads a webUrl, that web url returns a markdown.

Mark down is correctly rendered, I can see correct headings, links are interpreted correctly like links and are clickable, ecc.
The only things that seems to not work is the bold text.

Bold text **like this** or __like this__
is interpreted "like this", without the ** or __
but it's not bold, it is rendered like a normal text.

Any idea on how to fix it? :)

Thanks
Davide





________________________________

Tom Schindl - Geschäftsführer/CTO
BestSolution.at EDV Systemhaus GmbH
Salurner Straße 15, 6020 Innsbruck, Austria
Phone: ++43 (0)512 935834 - Web: https://www.BestSolution.at
Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck
[BestSolution]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-discuss/attachments/20240105/b18e9f40/attachment.htm>


More information about the openjfx-discuss mailing list