Skip to content

feat(templates): add markdown template management#115

Merged
murongg merged 1 commit into
mainfrom
feature/markdown-template-system
May 21, 2026
Merged

feat(templates): add markdown template management#115
murongg merged 1 commit into
mainfrom
feature/markdown-template-system

Conversation

@murongg
Copy link
Copy Markdown
Owner

@murongg murongg commented May 21, 2026

Summary

  • Add a lightweight Markdown template system with built-in and custom templates, editable Markdown source, preview mode, and template variable rendering.
  • Store template bodies as individual .md files in the native template directory while keeping only the template list/index in settings.json.
  • Add a dedicated Templates settings section with a two-pane list/editor layout and localized UI text.
  • Support creating Markdown files from templates and saving an existing Markdown file as a template from the file tree.

Validation

  • pnpm --filter @markra/desktop test src/lib/templates.test.ts src/lib/tauri/file.test.ts src/lib/settings/app-settings.test.ts src/components/MarkdownFileTreeDrawer.test.tsx src/components/SettingsSections.test.tsx -- --runInBand
  • pnpm --filter @markra/desktop test src/App.test.tsx -- --runInBand
  • pnpm --filter @markra/shared test src/i18n/index.test.ts
  • pnpm --filter @markra/desktop typecheck:test
  • pnpm --filter @markra/shared typecheck:test
  • cargo test in apps/desktop/src-tauri
  • pnpm --filter @markra/desktop build (passes; Vite reports the existing large chunk warning)
  • pnpm --filter @markra/shared build

Closes #44

@murongg murongg marked this pull request as ready for review May 21, 2026 03:20
@murongg murongg force-pushed the feature/markdown-template-system branch from 8c30707 to d185835 Compare May 21, 2026 03:43
@murongg murongg merged commit 712aa0c into main May 21, 2026
2 checks passed
@murongg murongg deleted the feature/markdown-template-system branch May 21, 2026 03:55
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.

Feature: 轻量模板系统

1 participant