From 2d5e027f829262a15893f2ff532db12723a26871 Mon Sep 17 00:00:00 2001 From: npmrun <1549469775@qq.com> Date: Thu, 23 Apr 2026 23:25:41 +0800 Subject: [PATCH] docs: add article markdown export implementation plan Add a task-by-task implementation plan for public post markdown export, including TDD checkpoints, integration steps, and manual acceptance verification. Made-with: Cursor --- ...-article-markdown-export-implementation-plan.md | 275 +++++++++++++++++++++ 1 file changed, 275 insertions(+) create mode 100644 docs/superpowers/plans/2026-04-23-article-markdown-export-implementation-plan.md diff --git a/docs/superpowers/plans/2026-04-23-article-markdown-export-implementation-plan.md b/docs/superpowers/plans/2026-04-23-article-markdown-export-implementation-plan.md new file mode 100644 index 0000000..1b72221 --- /dev/null +++ b/docs/superpowers/plans/2026-04-23-article-markdown-export-implementation-plan.md @@ -0,0 +1,275 @@ +# Article Markdown Export Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Add a visitor-available `.md` export button on public post detail pages that downloads `bodyMarkdown` and normalizes site-relative image URLs to absolute URLs. + +**Architecture:** Keep export fully client-side in the existing public post detail page to avoid adding new server endpoints. Add a focused utility module to normalize markdown image URLs and trigger downloads, with unit tests for URL handling rules. Integrate button states and toast feedback in `app/pages/@[publicSlug]/posts/[postSlug].vue` without changing existing post loading/edit/comment behaviors. + +**Tech Stack:** Nuxt 4, Vue 3 `