Repository navigation
fix: 渲染并保留原生 HTML,应用图标按 macOS 网格留白 - #8
Merged
Merged
Conversation
此前 Markdown 中的 HTML 会被 schema 拆散,保存时 <div align>、<details>、<kbd>、带 width 的 <img> 等直接丢失。 现在 HTML 块与行内 HTML 作为原子节点按原文保存,编辑区显示清洗后的渲染效果,双击编辑源码; <details> 等中间有空行的块整体保留并渲染块内 Markdown,<b>/<sup>/纯文字 <a> 等仍转为可编辑格式。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
底板铺满 1024 画布导致 Dock / 启动台中图标偏大;改为 824×824 居中并加轻微投影,重新生成 icns / ico。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
原生 HTML
此前 Markdown 中的 HTML 会被 schema 拆散,保存时原始 HTML 丢失(
<div align>、<details>、<kbd>、<span style>,<img width>会变成![]()丢掉宽度)。<details>等中间有空行的块整体保留,块内 Markdown 一并渲染(与 GitHub 一致)<b>、<sup>、纯文字<a>等仍转为可编辑格式;包着图片的<a>(徽章)保留原文<script>/<style>/<iframe>、on*属性与javascript:链接;编辑区内点击链接不跳转,⌘/Ctrl 点击用浏览器打开应用图标
底板铺满 1024 画布,在 Dock / 启动台中比其他应用大一圈。按 macOS 网格改为 824×824 居中并加轻微投影,重新生成
icons.icns、dmg-file-icon.icns、icon.ico、icons.ico。关于窗口用的frontend/src/assets/icon.png与site/未改动。验证
npm run typecheck、npm run build通过vitest110 个测试通过(新增tests/html-node.test.ts:往返保留、跨空行块、行内 HTML/注释、徽章、代码内 HTML、段落打断、清洗)🤖 Generated with Claude Code