Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to use ID-Based links #94

Open
MasterHansCoding opened this issue Mar 7, 2024 · 1 comment
Open

Not able to use ID-Based links #94

MasterHansCoding opened this issue Mar 7, 2024 · 1 comment

Comments

@MasterHansCoding
Copy link

I installed the extension.

I created the "file1.md" and "file2.md" as described in the documentation "markdown-links/docs/id-based-links.md".

I restarted Visual Studio Code.

I am not able to click on the ID to open the other file. What am I doing wrong?

I tried to add some settings to create a regular expression in "settings.json" but it still doesn't work:

{
    "markdown-links.fileIdRegexp": "\\[\\[(\\d+)\\]\\]"
}
@MasterHansCoding
Copy link
Author

MasterHansCoding commented Mar 7, 2024

I succeeded to link files inside the graph view with this "settings.json":

{
    "configuration": {
        "title": "Markdown Links",
        "properties": {
            "markdown-links.fileIdRegexp": {
                "type": "string",
                "default": "\\d{14}",
                "description": "Regular extension used to find file IDs. First match of this regex in file contents, excluding [[links]], will be used as the file ID. This file ID can be used for wiki-style links."
            }
        }
    }
}

You can close this issue. :)

Also I've just found Markdown Links Updater, this is what I was looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant