MDFX is a simple markdown-renderer for JavaFX. It's based on flexmark-java. It is used to render the documentation for jpro at jpro.one.
For Gradle, add the following to your build.gradle
:
Add the following repository:
repositories {
maven {
url "https://sandec.jfrog.io/artifactory/repo"
}
}
Add The following dependency:
dependencies {
compile "com.sandec:mdfx:0.2.4"
}
Usage:
import com.sandec.mdfx.MarkdownView;
MarkdownView mdfx = new MarkdownView("your-markdown");
content.getStylesheets().add("/com/sandec/mdfx/mdfx-default.css");
Simple Application: Source Code
Feature Overview: Reference-Markdown-File
You can personalize the looking of your markdown via css.
Minimal default-file
Instead of using /com/sandec/mdfx/mdfx-default.css
you can create your own css-file, to personalize the looking of your markdown-code.
- Fixed Newline character in links.
- Fixed an bug with nested Sorted/Unsorted lists.
- Fixed an layouting issue with lists. In some situations "..." was shown for left label counting the entries.
- The blockquote is now configured with the css variables
-mdfx-bq-color-border
and-mdfx-bq-color-border
. Users might want to add these variables to their css. - Ordered lists start now with 1 instead of 0.
Run the sample:
./gradlew example:run
./gradlew example:jproRun
Deploy new release:
./gradlew :publish