Repository navigation
Conversation
…sh [force major] - add alert, footnote/footnote-section and chart (@lobehub/charts) nodes with Markdown, LiteXML, headless and renderer support - heading anchors and folding, table column alignment, file mimeType/ext with preview/download, image caption/thumbhash/accent/lightbox, checklist LiteXML - chart: visual config form (setup/data/style) next to the JSON source editor - table: quiet resting look, edge grips with one grouped menu, insert dots between rows/columns BREAKING CHANGE: TablePluginOptions decoratorCol/decoratorRow are replaced by a single decorator option; the old table controller, action menu and hover-action components are removed.
|
👍 @Innei Thank you for raising your pull request and contributing to our Community. 非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 227f5a6d4c
ℹ️ 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".
| markdownService.registerMarkdownReader('footnoteReference', (node) => | ||
| INodeHelper.createTypeNode(FootnoteNode.getType(), { | ||
| identifier: normalizeFootnoteIdentifier(node.label ?? node.identifier), |
There was a problem hiding this comment.
Use canonical Markdown identifiers to associate footnotes
For valid Markdown containing Text[^NOTE] and [^note]: Source, these readers store different identifiers because they prefer the original label and normalizeFootnoteIdentifier does not case-fold it. Consequently, $collectFootnotes treats the reference as missing and the definition as orphaned, breaking previews, navigation, and read-only rendering. The mdast Association specification provides a normalized, case-folded identifier specifically for these associations. Use that identifier consistently in both readers and add a mixed-case Markdown round-trip test.
AGENTS.md reference: AGENTS.md:L113-L115
Useful? React with 👍 / 👎.
| markdownService.registerMarkdownWriter(FootnoteSectionNode.getType(), (ctx, node) => { | ||
| if (!$isFootnoteSectionNode(node)) return false; |
There was a problem hiding this comment.
Generate missing definitions even without a footnote section
When the last definition is removed, for example through a LiteXML removal operation, registerFootnoteStructure removes the now-empty section while leaving references intact. Missing-definition generation only runs inside this section writer, so Markdown export then emits references without definitions. Reimporting that Markdown turns them into ordinary text, losing the footnote nodes. Generate missing definitions independently of section existence and cover removal of the final definition in a headless round-trip test; the existing test retains another definition and therefore misses this case.
AGENTS.md reference: AGENTS.md:L113-L115
Useful? React with 👍 / 👎.
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
New nodes (each with Markdown, LiteXML, headless and
LexicalRenderersupport):@lobehub/charts(lazy loaded); bar / line / area / pie stored as a JSON spec.Existing nodes, new fields and interactions:
colAligns).mimeType/ext, a type icon, preview and download.<ul type="check"><li checked>.Chart visual form: an Edit chart popover with Setup / Data / Style tabs next to the
</>JSON editor. Every change applies at once, invalid input reverts, and each change is one undo step.Table polish:
TablePluginOptions.decoratorCol/decoratorRow→ a singledecorator(node, editor)option.icon, and there are newlabel/segmenteditem types plus atableaxis.📝 补充信息 | Additional Information
UI verification (Chrome, real pointer): https://ryugi.innei.dev/a/KooUZu_GJ3r7W2XKzQi2
Checks:
pnpm type-check✅,pnpm lint:circular✅, eslint 0 errors,vitest837 passed / 1 skipped.Known follow-ups (not in this PR):