JPro-one / markdown-javafx-renderer

Markdown for JavaFX
Apache License 2.0
51 stars 7 forks source link

Fix invalid code snippet in README #11

Closed Dansoftowner closed 3 years ago

Dansoftowner commented 3 years ago

In the code snippet at the Usage section, the new MarkdownView constructor is used but the variable data type is still MDFXNode:

import com.sandec.mdfx.MarkdownView;

MDFXNode mdfx = new MarkdownView("your-markdown"); // Invalid data type
content.getStylesheets().add("/com/sandec/mdfx/mdfx-default.css");
FlorianKirmaier commented 3 years ago

Thank you for reporting this ! It's fixed now.