Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes graph-parser import behavior so Quote-blocks preserve “special content” (tables, displayed math, and fenced code) instead of dropping table content or converting the whole quote into a different block type.
Changes:
- Teach
ast->textto renderTableAST nodes into Markdown table text so quoted tables aren’t lost. - Prevent Quote-blocks from being re-typed as
#Math/#Codewhen they contain only displayed math or a single code fence. - Add an integration test graph fixture + assertions covering quoted table/math/code, and update expected counts.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| deps/graph-parser/src/logseq/graph_parser/exporter.cljs | Adds table extraction in ast->text and preserves Quote-block type when content is only displayed math / a single code fence. |
| deps/graph-parser/test/logseq/graph_parser/exporter_test.cljs | Adds an async integration test asserting preservation of quoted tables, displayed math, and fenced code; updates expected entity counts. |
| deps/graph-parser/test/resources/exporter-test-graph/journals/2025_09_14.md | New test fixture journal containing quoted table, displayed math, and fenced code blocks. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
1203
to
1206
| (and (vector? node) (= (first node) "Src")) | ||
| [(str "\n```" (when-let [lang (:language (second node))] lang)) | ||
| (apply str "\n" (:lines (second node))) | ||
| "```"] |
This was referenced Oct 27, 2026
Contributor
|
Closing as a duplicate of #13886, which covers the same bug more completely. Thanks! |
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.
fix logseq/db-test#1048