Skip to content

Match native Obsidian rendering and embed behavior - #15

Merged
macros0 merged 2 commits into
mainfrom
codex/render-polygon-parity-20261102
Nov 2, 2026
Merged

macros0 merged 2 commits into
mainfrom
codex/render-polygon-parity-20261102

Conversation

@macros0

@macros0 macros0 commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Summary

Bring the rendering polygon closer to native Obsidian while preserving stored Markdown and existing editability rules. This fixes vault-font and property presentation, partial list indentation, inline-link overlap, task tick colors, callout folding/source actions, late code fences, multiline display math, Mermaid colors, embedded-note navigation and compact missing-PDF placeholders.

Preserve bounded inert HTML formatting through the shared sanitizer, resolve same-note heading/block references, remove extra spacing between consecutive image rows, and use the existing trusted player policy for validated YouTube privacy-domain iframes. Other authored frames keep opaque origins. A pre-merge review regression test also protects shorter fence examples inside longer or unclosed code fences.

Related

Existing Markdown/Obsidian compatibility and PDF embed scope (FR-2 / FR-21). Detailed validation and compatibility boundaries are recorded in the two rendering-parity plans included in this PR.

Type of change

  • Bug fix
  • New feature
  • Refactor / chore
  • Docs only

Checklist

  • npm run typecheck passes
  • npm run build succeeds
  • Existing PRD scope is unchanged; no design/spec expansion
  • Updated IMPLEMENTATION_PLAN.md with the completed parity work
  • No secrets/tokens logged; path and markup boundaries remain guarded

Validation

  • Full local regression: 390 server tests passed (10 Windows skips), 518 web tests passed.
  • Desktop typecheck, critical dependency checks, MCP tests and HTTP integration smoke passed.
  • Independent code review completed; its nested-fence finding was reproduced, fixed and re-reviewed.
  • Native Obsidian 1.14.5 fixtures and actual browser checks cover source preservation, hover controls, pointer/keyboard activation, loaded attachments and repeated PDF instances.
  • A separate headless Chrome comparison verifies the YouTube iframe policy change; unavailable content displays the provider's message instead of an empty black frame.

Screenshots / notes

The rendering fixes preceding the final nested-fence correction were verified on the running server with backups, asset/runtime hashes and unchanged original note hashes. Native fresh/full-polygon PDF page=3 behavior and the complete embedded-note SVG were confirmed; no speculative PDF-page or icon change is included. Remote pages still enforce their own framing restrictions, such as X-Frame-Options: SAMEORIGIN.

@macros0
macros0 merged commit 21c0718 into main Nov 2, 2026
3 checks passed
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.

1 participant