-
Notifications
You must be signed in to change notification settings - Fork 13.5k
webui: add HTML/JS preview support to MarkdownContent with sandboxed iframe #16757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
allozaur
merged 7 commits into
ggml-org:master
from
ServeurpersoCom:sandboxed-html-preview
Nov 1, 2025
Merged
webui: add HTML/JS preview support to MarkdownContent with sandboxed iframe #16757
allozaur
merged 7 commits into
ggml-org:master
from
ServeurpersoCom:sandboxed-html-preview
Nov 1, 2025
+230
−43
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allozaur
requested changes
Oct 24, 2025
tools/server/webui/src/lib/components/app/misc/CodePreviewDialog.svelte
Outdated
Show resolved
Hide resolved
tools/server/webui/src/lib/components/app/misc/MarkdownContent.svelte
Outdated
Show resolved
Hide resolved
e0b6867 to
e7eee4f
Compare
Screen_Recording_20251025_103506_Kiwi.Browser.mp4 |
f988541 to
948802f
Compare
948802f to
0f9c7a3
Compare
|
Rebase + static build |
…iframe dialog Extended MarkdownContent to flag previewable code languages, add a preview button alongside copy controls, manage preview dialog state, and share styling for the new button group Introduced CodePreviewDialog.svelte, a sandboxed iframe modal for rendering HTML/JS previews with consistent dialog controls
…og.svelte Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
….svelte Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
0f9c7a3 to
62c6758
Compare
|
Rebased following #16901 |
allozaur
approved these changes
Nov 1, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Extended MarkdownContent to flag previewable code languages,
add a preview button alongside copy controls, manage preview
dialog state, and share styling for the new button group
Introduced CodePreviewDialog.svelte, a sandboxed iframe modal
for rendering HTML/JS previews with consistent dialog controls
sandboxed-html-preview-AVC500kbps.mp4