Skip to content

JavaFX-Markdown-Preview v1.0.2

Compare
Choose a tag to compare
@raghul-tech raghul-tech released this 09 Jul 13:33
· 1 commit to main since this release

📦 JavaFX Markdown Preview v1.0.2

Release Date: 2025-07-09

✨ Added

  • Tab and TabPane Integration

    • Simplified APIs to embed previews directly inside TabPane.

    • MarkdownTab now supports relaunchTab() and improved lifecycle management.

  • Standalone WebView Component

    • New class returning a WebView node you can embed anywhere (VBox, HBox, BorderPane, etc.).
  • Syntax Highlighting

    • Code blocks now render with automatic syntax highlighting.
  • Copy Button

    • One-click copy buttons added to all code blocks.
  • Improved Dark and Light Themes

    • Visual styles more closely match GitHub Markdown.
  • Enhanced Real-Time Updates

    • File changes reflect instantly without flicker.
  • MarkdownRenderer Enhancements

    • Added ability to export styled HTML.
  • Example Projects

    • Added multiple examples demonstrating:

      • Scene embedding

      • Stage embedding

      • VBox embedding

      • TabPane integration

      • Custom WebView usage


🛠️ Improved

  • 🪄 Window Launch Logic

    • More reliable lifecycle—no crashes when reopening windows.
  • Performance

    • Faster initial rendering and reduced memory usage with large Markdown files.
  • 🧹 Refactoring

    • Clear separation between:

      • javafx-markdown-preview (minimal core)

      • javafx-markdown-preview-all (with Flexmark and sources)

  • 🪟 Window Customization

    • Easier configuration of window title, size, and icons.
  • 🎯 Compatibility

    • Switched from JavaFX 23 to JavaFX 17 for broader Java 11+ support.

🧩 Artifacts

  • 🏷️ javafx-markdown-preview

    • Minimal build (requires you to add Flexmark).
  • 🏷️ javafx-markdown-preview-all

    • Bundled version including Flexmark and example sources.

🐞 Fixed

  • 🐛 Dark/light theme switching issues.

  • 🐛 Occasional NullPointerException when re-adding MarkdownTab.

  • 🐛 Encoding problems in previews with special characters.


⚖️ License Change

  • License updated:

    • From: MIT

    • To: GNU General Public License v3 (GPL-3.0)

This change ensures contributions remain open-source while allowing broader usage.


💡 Tip

You can now embed the WebView-based preview in any JavaFX Node for maximum flexibility.