Skip to content

Portfolio: import details from a Markdown file #46

Closed

Description

@procoder-ji

Part of #40. Depends on #45.

Scope

  • A downloadable portfolio.md template and a copyable AI prompt, for example: 'Fill this template with my details. Keep every heading exactly as it is. Do not add HTML.'
  • A parser that maps the front matter and headings to the shared fields.
  • Unknown sections are reported to the student, never dropped silently. HTML or JSX is rejected with a clear message, as src/lib/mdx-safe.ts does for notes.
  • The import only fills in the editor; the student reviews and saves. The Markdown file is never rendered as a page.
  • Text files only, with a size limit (for example 50 KB).

Done when

Unit tests cover: the template round trip, missing sections, extra sections, HTML rejection, and invalid links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requestportfolioStudent portfolio feature

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions