Skip to content

Annotate the parse tree of quote blocks#9928

Draft
pmario wants to merge 1 commit into
TiddlyWiki:masterfrom
pmario:feat/quoteblock-annotations
Draft

Annotate the parse tree of quote blocks#9928
pmario wants to merge 1 commit into
TiddlyWiki:masterfrom
pmario:feat/quoteblock-annotations

Conversation

@pmario

@pmario pmario commented Jul 12, 2026

Copy link
Copy Markdown
Member

Record the facts about a <<< quote block that existed only in the source: marker depth, user classes, and which cite elements are synthesized.

  • Record marker and userClasses on the blockquote node and stamp isQuoteCite on the synthesized cite elements; without them nested quotes emit unparseable <<< at every level and user classes fuse with the synthesized tc-quote
  • Capture the marker before parsing the body; a nested quote re-enters the same rule instance and overwrites this.match
  • Note for third-party code: the new fields are purely additive; rendered output is unchanged

Part of #9908.

Record the facts about a <<< quote block that existed only in the
source: marker depth, user classes, and which cite elements are
synthesized. Fixes TiddlyWiki#9911.

* Record marker and userClasses on the blockquote node and stamp
  isQuoteCite on the synthesized cite elements; without them nested
  quotes emit unparseable <<< at every level and user classes fuse
  with the synthesized tc-quote
* Capture the marker before parsing the body; a nested quote re-enters
  the same rule instance and overwrites this.match
* Note for third-party code: the new fields are purely additive;
  rendered output is unchanged
@netlify

netlify Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploy Preview for tiddlywiki-previews ready!

Name Link
🔨 Latest commit baf7680
🔍 Latest deploy log https://app.netlify.com/projects/tiddlywiki-previews/deploys/6a54147688b6ee00086ac583
😎 Deploy Preview https://deploy-preview-9928--tiddlywiki-previews.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

Copy link
Copy Markdown

Confirmed: pmario has already signed the Contributor License Agreement (see contributing.md)

@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown

📊 Build Size Comparison: empty.html

Branch Size
Base (master) 2492.6 KB
PR 2493.0 KB

Diff: ⬆️ Increase: +0.4 KB


✅ Change Note Status

All change notes are properly formatted and validated!

📝 $:/changenotes/5.5.0/#9911

Type: enhancement | Category: developer
Release: 5.5.0

Quote blocks annotate their parse tree nodes

🔗 #9911

👥 Contributors: pmario


📖 Change Note Guidelines

Change notes help track and communicate changes effectively. See the full documentation for details.

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.

Annotate the parse tree of quote blocks

1 participant