Skip to content

feat: allow custom remark/rehype plugins via config #133

@rohilsurana

Description

@rohilsurana

Problem

`src/server/vite-config.ts` hardcodes the remark/rehype plugin chain (directives, admonitions, image resolution, link resolution, mermaid, reading time, GFM, frontmatter). Site owners can't add custom plugins (e.g. remark-math, rehype-katex) without forking.

Suggested Approach

  • Add an optional `plugins` field to `chronicle.yaml`:
    ```yaml
    plugins:
    remark:
    - remark-math
    rehype:
    - rehype-katex
    ```
  • Resolve plugin modules from the project's `node_modules`
  • Append user plugins after the built-in chain

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions