feat: add direct single markdown rendering API#9
Merged
Conversation
Add a lightweight filesystem implementation that wraps a single markdown byte buffer, bypassing ZIP construction/parsing for self-contained markdown files. This enables direct rendering without ZIP overhead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
Expose render_markdown_entry_with_options through a renderMarkdown JavaScript binding, allowing the browser to render a single markdown file without constructing or parsing a ZIP archive. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
When a single markdown file is uploaded, store its raw bytes and use the new renderMarkdown WASM binding for preview rendering. This skips ZIP decompression and re-analysis on each options change. ZIP is still built for operations that need it (debug bundle, server fallback). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Yonghye Kwon <developer.0hye@gmail.com>
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
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.
Summary
SingleMarkdownFileSystemtomarknest-coreimplementingIndexedFileSystem, wrapping a single markdown byte buffer without ZIP overheadrender_markdown_entryandrender_markdown_entry_with_optionspublic APIs tomarknest-corerenderMarkdown(md_bytes, filename, options)WASM binding tomarknest-wasmrenderMarkdownfor single.mdpreview rendering, skipping ZIP decompression on each re-renderRelated: #8
Test plan
wasm32-unknown-unknown) compiles cleanly.mdfile in the web app and verify preview renders without ZIP wrapping delay🤖 Generated with Claude Code