Skip to content

fix loading bug: use script tags for embedded markdown#27

Merged
kicka5h merged 1 commit intomainfrom
claude/python-snacks-wiki-pages-gtkZQ
Mar 18, 2026
Merged

fix loading bug: use script tags for embedded markdown#27
kicka5h merged 1 commit intomainfrom
claude/python-snacks-wiki-pages-gtkZQ

Conversation

@kicka5h
Copy link
Copy Markdown
Owner

@kicka5h kicka5h commented Mar 18, 2026

No description provided.

The previous approach embedded markdown as JS string literals, but
unescaped quotes in the content caused syntax errors that prevented
the page from rendering. Now uses <script type="text/x-markdown">
tags which avoid all escaping issues — the browser treats the content
as plain text and JS reads it via .textContent.

https://claude.ai/code/session_01BgQZR5yFQxP94gNvDkvavs
@kicka5h kicka5h force-pushed the claude/python-snacks-wiki-pages-gtkZQ branch from 6b3421a to 9b2ba8a Compare March 18, 2026 06:29
@kicka5h kicka5h merged commit 649a59c into main Mar 18, 2026
3 checks passed
@kicka5h kicka5h deleted the claude/python-snacks-wiki-pages-gtkZQ branch March 18, 2026 06:29
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