Skip to content

fix(json-canvas): document double-quote escaping pitfall in text content#97

Open
citizen204 wants to merge 1 commit into
kepano:mainfrom
citizen204:fix/json-canvas-quote-escaping
Open

fix(json-canvas): document double-quote escaping pitfall in text content#97
citizen204 wants to merge 1 commit into
kepano:mainfrom
citizen204:fix/json-canvas-quote-escaping

Conversation

@citizen204

Copy link
Copy Markdown

Summary

Documents the double-quote escaping requirement in JSON Canvas text content.

Closes #42

Problem

Double quotes inside JSON string values must be escaped as \" to produce valid JSON. Without this, canvas files containing quoted text (e.g. "公司的"外交官"" or "She said "hello"" ) are silently broken — Obsidian renders them as empty or displays errors.

Changes

  • Adds a Quote pitfall note with ❌/✅ examples directly after the existing Newline pitfall in the Text Nodes section (consistent style)
  • Updates the Validation Checklist footer to mention unescaped double quotes alongside unescaped newlines

Unescaped double quotes in JSON string values produce invalid JSON that
Obsidian cannot render. Add a 'Quote pitfall' note with before/after
examples alongside the existing 'Newline pitfall', and update the
validation checklist footer to mention unescaped quotes.

Closes kepano#42
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.

JSON Canvas skill doesn't escape quotes in text content, causing invalid JSON

1 participant