Skip to content

feat(demo): import a Markdown file from the Markdown tab - #113

Merged
FloGeez merged 1 commit into
mainfrom
feat/demo-markdown-import
Nov 2, 2026
Merged

FloGeez merged 1 commit into
mainfrom
feat/demo-markdown-import

Conversation

@FloGeez

@FloGeez FloGeez commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Adds an Import button to the MD tab of the demo's content view (Code & Preview mode). It opens a .md file and loads it into the editor with setContent(markdown, { contentType: "markdown" }), so the Markdown import can be tried without the browser console.

  • EditorConfigurationService.importMarkdown() goes through the editor registry, like the existing clear and export actions.
  • Success and error toasts, translated in the five demo languages.
  • The file input is reset after each pick, so importing the same file twice works.

Demo only: no library change, so no change fragment.

Tests

  • New e2e test in tests/demo-ui.spec.ts: imports a file through the input and checks the editor and the Markdown tab.
  • demo-ui.spec.ts passes on Chromium (8 tests). Lint, Prettier and the demo type-check pass.

🤖 Generated with Claude Code

Adds an Import button to the Markdown tab of the content view. It loads
a .md file into the editor through setContent with contentType
"markdown", so the Markdown import can be tried in the demo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@FloGeez
FloGeez merged commit 37aa8e1 into main Nov 2, 2026
7 checks passed
@FloGeez
FloGeez deleted the feat/demo-markdown-import branch November 2, 2026 16:03
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