Repository navigation
[Feature] 模组等的更新日志以及 HTMLRenderer 的完善 - #6098
Conversation
# Conflicts: # HMCL/src/main/resources/assets/lang/I18N.properties # HMCL/src/main/resources/assets/lang/I18N_es.properties # HMCL/src/main/resources/assets/lang/I18N_ja.properties # HMCL/src/main/resources/assets/lang/I18N_lzh.properties # HMCL/src/main/resources/assets/lang/I18N_ru.properties # HMCL/src/main/resources/assets/lang/I18N_uk.properties # HMCL/src/main/resources/assets/lang/I18N_zh.properties # HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/ModUpdatesPage.java
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/versions/DownloadPage.java
|
我找个时间再测测。 |
# Conflicts: # HMCLCore/src/main/java/org/jackhuang/hmcl/addon/RemoteAddon.java # HMCLCore/src/main/java/org/jackhuang/hmcl/addon/repository/CurseForgeRemoteAddonRepository.java
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/DownloadPage.java # HMCLCore/src/main/java/org/jackhuang/hmcl/addon/repository/CurseForgeRemoteAddonRepository.java # HMCLCore/src/main/java/org/jackhuang/hmcl/addon/repository/ModrinthRemoteAddonRepository.java
|
最近几版的日志有个水平线,但没有渲染。CF / MR 都有。 |
|
最近几版日志下面有几张图片,但没有渲染。仅 CF。 |
这几个是 SVG。起码 alt 没问题(
CommonMark 好像没支持这个。 这俩问题都得好好考虑一下怎么解决了 |
欸,我看上面两个 What’s new 和 Historic changelog 也是 SVG,但它们渲染了。这其中有啥奥秘吗 🤔 |
|
#6098 (comment) solved |
下面这几个SVG开头有一个 |
|
@3gf8jv4dv 这个我不太想整了。这玩意是 |
OK 的。我的想法是,如果没有维护者难以接受的问题,这个 PR 应该尽早合并到开发版里供大伙试用。 |
|
@codex review |
# Conflicts: # HMCL/src/main/java/org/jackhuang/hmcl/ui/instances/DownloadPage.java
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8b30497ad4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (code) { | ||
| text.getStyleClass().add("html-code"); | ||
| text.setStyle("-fx-font-family: \"%s\";".formatted(Lang.requireNonNullElse(settings().logFontFamilyProperty().get(), FXUtils.DEFAULT_MONOSPACE_FONT))); | ||
| return; |
There was a problem hiding this comment.
Preserve links inside inline code
When changelog Markdown uses code as the link label, such as [`foo`](https://example.com), CommonMark renders nested <a><code>...</code></a>. This early return handles the code styling before the hyperlink branch below runs, so the visible link text gets no click handler or hand cursor and the link is dead; apply the code styling without bypassing the hyperlink handling.
Useful? React with 👍 / 👎.
|
善 |
|
OHHHHHHH |
Resolves HMCL-dev#4685 Co-authored-by: Calboot <[email protected]> Co-authored-by: CalbootOnceMore <[email protected]> Co-authored-by: CiiLu <[email protected]>
Upstream endpoint: cf21cf4 (HMCL-dev#6649). Integrates the audited applicable upstream changes with XYML equivalents: - HMCL-dev#6098 0443ff7: on-demand add-on changelogs and safe Swing HTML rendering. - HMCL-dev#6620 ff459a5: exact provider version links. - HMCL-dev#6617 c149401: changelog spacing. - HMCL-dev#6630 15d4874: streaming MCBBS pack metadata. - HMCL-dev#6633 8eec184: instance selector popup toggle. - HMCL-dev#6641 0807c04: 32-bit automatic-memory cap. - HMCL-dev#6642 78b8d37: missing manifest patches handling. - HMCL-dev#6636 a0d1fa8: OOM task lifecycle completion. - HMCL-dev#6649 cf21cf4: non-empty log export with native-encoding fallback. Commit HMCL-dev#6613 (5796dad) is intentionally content-skipped because it only changes the removed JavaFX image-detection/UI path. Conflict policy: retain the Swing rewrite and all XYML-specific behavior; do not restore removed JavaFX/JFoenix files. This merge makes the cached upstream history an ancestor without forcing unrelated branch differences into the resulting tree.
Upstream endpoint: cf21cf4 (HMCL-dev#6649). Integrates the audited applicable upstream changes with XYML equivalents: - HMCL-dev#6098 0443ff7: on-demand add-on changelogs and safe Swing HTML rendering. - HMCL-dev#6620 ff459a5: exact provider version links. - HMCL-dev#6617 c149401: changelog spacing. - HMCL-dev#6630 15d4874: streaming MCBBS pack metadata. - HMCL-dev#6633 8eec184: instance selector popup toggle. - HMCL-dev#6641 0807c04: 32-bit automatic-memory cap. - HMCL-dev#6642 78b8d37: missing manifest patches handling. - HMCL-dev#6636 a0d1fa8: OOM task lifecycle completion. - HMCL-dev#6649 cf21cf4: non-empty log export with native-encoding fallback. Commit HMCL-dev#6613 (5796dad) is intentionally content-skipped because it only changes the removed JavaFX image-detection/UI path. Conflict policy: retain the Swing rewrite and all XYML-specific behavior; do not restore removed JavaFX/JFoenix files. This merge makes the cached upstream history an ancestor without forcing unrelated branch differences into the resulting tree.
添加了下载模组、数据包等以及更新模组时显示更新日志的功能
Resolves #4685
具体变化:
HTMLRenderer的优化与完善,以及对 Markdown 的支持(引入了新依赖)TODO:
Reference: #4828