Skip to content

fix: export children of text property values - #13106

Merged
tiensonqin merged 1 commit into
masterfrom
logseq/export-text-property-value-children-436c
Aug 26, 2026
Merged

tiensonqin merged 1 commit into
masterfrom
logseq/export-text-property-value-children-436c

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Children of default/text-type property values exist in the DB under the value block, but markdown file export and the derived markdown mirror only wrote the value title. The subtree was dropped.

Fixes logseq/db-test#1107.

Cause

Default/text property values are exported as nested blocks by default-property-value-block-content. That helper wrote the value title (and any properties on the value) but did not walk :block/_parent children. URL and other non-text types stay on a single property line and are unchanged.

The markdown-mirror outline walk is not the source of the missing content: it only decorates already-exported outline blocks. The children never made it into the exported markdown.

Change

  • Recursively export children of default/text property values in logseq.common.export.file.
  • Leave URL and other non-text property types as inline values without child export (does not address db-test#1108).

Tests

  • File export: children of a default/text property value appear under the value; URL property values with children stay inline and do not export those children.
  • Markdown mirror: same coverage through <mirror-page!.

Verified with the production export/mirror functions:

  • Pre-fix: default/text children missing (- page value / - block value only).
  • Post-fix: page/block value children and grandchildren appear; URL children stay omitted.
  • frontend.handler.export-property-test + frontend.worker.markdown-mirror-test: 47 tests, 76 assertions, 0 failures.
  • clj-kondo on changed files: 0 errors, 0 warnings.
Open in Web Open in Cursor 

Copilot AI lite review requested due to automatic review settings August 23, 2026 16:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Include nested blocks under default/text property values in markdown
file export and the derived markdown mirror. URL and other non-text
property types stay inline and do not export value children.

Co-authored-by: Tienson Qin <[email protected]>
@tiensonqin
tiensonqin force-pushed the logseq/export-text-property-value-children-436c branch from 529f012 to e81e139 Compare August 26, 2026 10:13
@tiensonqin
tiensonqin merged commit a600fcf into master Aug 26, 2026
10 checks passed
@tiensonqin
tiensonqin deleted the logseq/export-text-property-value-children-436c branch August 26, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Child Blocks of Text-type Properties Are Missing from Mirrored Markdown Files

3 participants