Skip to content

Custom excerpt separator for createContentLoader() #2688

@Jinjiang

Description

@Jinjiang

Is your feature request related to a problem? Please describe.

I have a legacy blog to migrate. All the blog content use <!-- more --> as the excerpt separator. However, I found that in VitePress the separator is --- and there is no chance to customize that.

Describe the solution you'd like

Change the excerpt option from boolean to boolean | string | RegExp where people can possibly customize the separator.

Describe alternatives you've considered

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildRelated to the build systemcontribution welcomeThe team would welcome a contribution from the community for this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions