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

Renaming markdown files corrupts links with fragments and angle brackets #150

Closed
gmccullo opened this issue Sep 23, 2023 · 0 comments · Fixed by #151
Closed

Renaming markdown files corrupts links with fragments and angle brackets #150

gmccullo opened this issue Sep 23, 2023 · 0 comments · Fixed by #151
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@gmccullo
Copy link

Type: Bug

Create a project with 2 files:

foobarA.md:

# header A

[foobarB: header-1](<foobarB.md#header-1>)

foobarB.md:

# header 1

[foobarA: header-a](<foobarA.md#header-a>)

Rename either file and answer yes to the "Update Markdown links" prompt.

The links in one or both files will be broken. The fragment delimiter ('#') and the left angle ('<') are deleted:

# header A

[foobarB: header-1](foobarB2.mdheader-1>)

VS Code version: Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:55:25.390Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx (8 x 2296)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 13.95GB (3.40GB free)
Process Argv --crash-reporter-id f4d11365-b8df-4076-a7d2-5647e124f85c
Screen Reader no
VM 0%
Extensions: none
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263cf:30792227
vscaac:30438847
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
f6dab269:30613381
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
copilotsettingc:30839828
synctok:30821570
dsvsc013:30795093
dsvsc014:30804076
diffeditorv1:30821571
dsvsc015cf:30829746

@mjbvz mjbvz transferred this issue from microsoft/vscode Sep 25, 2023
@mjbvz mjbvz added the bug Issue identified by VS Code Team member as probable bug label Sep 25, 2023
mjbvz added a commit to mjbvz/vscode-markdown-languageservice that referenced this issue Sep 25, 2023
Fixes microsoft#150

Also bumps version to 0.4.0-alpha.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants