Skip to content

Hyperlink markdown still evaluated within a code block #3435

Description

@Arxareon

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Formatting

Expected Behaviour

[]() within a continuous code block would appear as is, formatted part of the code:

--- ```
--- t[i](...)
--- ```

to appear as::

t[i](...)

Actual Behaviour

It tries to turn it into a link because it still looks for the []() pattern within a code block.

it appears as:

t[i](file:///etc...)

Reproduction steps

Write []() in a code block, indexing and a function call right next to each other.

Additional Notes

Adding a whitespace between [] and () does solve it (the code is still Lua-viable while not being recognized as a markdown link) but that is just ugly.

Log File

No response

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