Skip to content

Latest commit

 

History

History
90 lines (73 loc) · 2.9 KB

README.md

File metadata and controls

90 lines (73 loc) · 2.9 KB

markdown-javafx-renderer

JPro supported JFX-Central Build Status

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.

Usage

Add the library to your project:

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.

Changelog

0.2.6 (10. March 2022)

  • Fixed Newline character in links.

0.2.5 (11. November 2021)

  • Fixed an bug with nested Sorted/Unsorted lists.

0.2.4

  • Fixed an layouting issue with lists. In some situations "..." was shown for left label counting the entries.

0.2.3

  • 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.

0.2.2

### 0.2.1 * Added support for BlockQuotes * Added support for TaskLists * Renamed MDFXNode to MarkdownView * Moved internal classes to an impl package ### 0.2.0 * Added support for ordered lists. * We now us the Java11 Module System. At least Java11 is now required. ### 0.1.9 * Added support for strikethrough * It's now possible to change the link color in the css with `-mdfx-link-color` * Updated flexmark to 0.62.2 ### 0.1.8 * The property mdString of MDFXNode is now public

Development

Run the sample:

./gradlew example:run
./gradlew example:jproRun

Deploy new release:

./gradlew :publish