Skip to content

Adding link to (non-html) files from md #265

Closed
@davay42

Description

@davay42

Vitepress keeps adding .html extension to any link referencing a pdf file relative to the page. Seems like it's hard-coded here

url = url.replace(/[?#].*$/, '').replace(/\.(html|md)$/, '')

May be it's the right way and any non-routed link should be put as <a> tag? Just wanted to share this observation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions