Skip to content

fix: export single-cardinality text properties inline - #13309

Closed
tiensonqin wants to merge 2 commits into
masterfrom
logseq/fix-md-mirror-single-cardinality-props-8cd3
Closed

tiensonqin wants to merge 2 commits into
masterfrom
logseq/fix-md-mirror-single-cardinality-props-8cd3

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes logseq/db-test#1218

Markdown mirror (and the shared DB page export path) always rendered open :default text properties as multi-value list syntax:

myprop::
  - some value

even when Multiple values was disabled.

The exporter now honors cardinality:

  • single-cardinality text properties export as myprop:: some value
  • many-cardinality text properties keep list syntax
  • list syntax is also kept when a value has nested blocks or properties, so child content is not dropped

Tests

  • Added frontend.handler.export-property-test/single-cardinality-default-properties-export-inline
  • Updated existing Markdown mirror property-export expectations for the new inline form
  • Existing default-property children tests remain on list syntax

Notes

No schema, migration, or protocol changes.

Open in Web Open in Cursor 

Devin Review

@tiensonqin
tiensonqin marked this pull request as ready for review September 19, 2026 11:26
Copilot AI lite review requested due to automatic review settings September 19, 2026 11:26

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.

cursoragent and others added 2 commits September 23, 2026 17:57
Markdown mirror treated every open :default property as a multi-value
list. Honor cardinality so prop:: value is used when Multiple values is
disabled, and keep list syntax for many-cardinality values and nested
content.

Co-authored-by: Tienson Qin <[email protected]>
Reuse exportable-property-ident? in block-properties-content and inline
the single-use property-value-entity helper.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot force-pushed the logseq/fix-md-mirror-single-cardinality-props-8cd3 branch from 03e59d0 to 116b03d Compare September 23, 2026 17:57

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Copy link
Copy Markdown
Contributor Author

Closing as a duplicate of #13869, which covers the same bug more completely. Thanks!

@tiensonqin tiensonqin closed this Nov 20, 2026
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.

Markdown mirror exports single-value properties with "Multiple values" disabled as list syntax (multi-value)

3 participants