Skip to content

feat: load markdown from a public URL - #8

Merged
lam0819 merged 1 commit into
mainfrom
feat/load-markdown-from-url
Nov 19, 2026
Merged

lam0819 merged 1 commit into
mainfrom
feat/load-markdown-from-url

Conversation

@lam0819

@lam0819 lam0819 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add #u=<url> hash loading and Edit → Load URL to fetch public markdown in the browser (GitHub blob URLs rewritten to raw).
  • embed.js accepts data-u as an alternative to data-c.
  • Document CORS / privacy trade-offs in README and AGENTS.

Test plan

  • Open Edit, paste a raw GitHub .md URL (or blob URL), click Load URL → diagram renders
  • Open /#u=<encodeURIComponent(rawUrl)> directly → same result
  • Bad URL / CORS failure shows an error in the drawer (not a silent demo fallback without message)
  • #c= client links and local paste still work
  • npm run check passes
  • Optional: script tag with data-u="…" embeds and fetches

Made with Cursor

Edit → Load URL (and hash #u= / embed data-u) fetches public markdown in the browser, with GitHub blob→raw rewriting and clear CORS errors.

Co-authored-by: Cursor <cursoragent@cursor.com>
@lam0819
lam0819 merged commit c1b8dd6 into main Nov 19, 2026
1 check 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.

2 participants