Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added JavaFX native markdown renderer #106

Merged
merged 10 commits into from
Feb 18, 2025
Merged

Added JavaFX native markdown renderer #106

merged 10 commits into from
Feb 18, 2025

Conversation

isHarryh
Copy link
Owner

概述

本 PR 初步实现了将 Markdown 文档转化为 FXML 文档,从而利用原生 JavaFX 实现 Markdown 渲染的功能。此功能旨在为 ArkPets 的公告功能打基础。

“Markdown->FXML” 的渲染功能,是针对 commonmark-java 的 “Markdown->HTML” 的渲染功能进行 FXML 的专门化适配而得到的。

目前支持的语法

  1. 段落
  2. 强调文本和删除线
  3. 引用块
  4. 超链接
  5. 分隔线
  6. 有序和无序列表
  7. 代码块
  8. 表格

目前不支持的语法

  1. 图片
  2. 内联代码文本
  3. HTML 元素

下一步计划

将此功能模块(cn.harryh.arkpets.utils.markdown)封装为独立的 Java 库,以减少 ArkPets 本体的复杂度。

@isHarryh isHarryh added the Enhancement New feature or request label Feb 18, 2025
@isHarryh isHarryh merged commit 43fed1b into v3.x Feb 18, 2025
3 checks passed
@isHarryh isHarryh deleted the v3.x-announce branch February 18, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant