markdown-links icon indicating copy to clipboard operation
markdown-links copied to clipboard

Not able to use ID-Based links

Open MasterHansCoding opened this issue 1 year ago • 1 comments

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 avatar Mar 07 '24 15:03 MasterHansCoding

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.

MasterHansCoding avatar Mar 07 '24 15:03 MasterHansCoding