Skip to content

Links behave unexpectedly in Preview #54

Description

Context

I am running the extension in macOS, in case this makes any difference.

Bug description

Clicking on a link to another md file opens the md file in the new Preview, loads the preview but also opens the web browser with a weird URL (https://file+.vscode-resource.vscode-cdn.net/PATH_TO_MD_FILE).

Also, clicking on an anchored link (e.g., to a subsection in the same page) does not scroll down to that subsection.

Related links

Reproduction

reproduction.zip

Steps to reproduce

  1. Add a link to another page.
  2. Open the preview.
  3. Click the link.
  4. The linked .md file should open, as well as the preview of that linked .md file AND the browser.

Editor

Visual Studio Code

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions