LuaLS / LuaLS/lua-language-server
Hyperlink markdown still evaluated within a code block
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Lua
- Sterne
- 4.4k
- Forks
- 442
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 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_
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Problem in der Visual Studio Code-Erweiterung mithilfe eines Lua-Codeblocks, der `t[i](...)` enthält. Verfolge den für Codeblöcke zuständigen Einstiegspunkt der Formatierung oder Markdown-Darstellung; abgeschlossen ist die Aufgabe, wenn `[]()` innerhalb des Blocks wörtlich erhalten bleibt, während normale Links außerhalb weiterhin funktionieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- lua
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 58/100