vocs icon indicating copy to clipboard operation
vocs copied to clipboard

Url fragment is dropped if the url includes file type.

Open shakiba opened this issue 1 year ago • 1 comments

If a link is like page.md#section-2, then in the generated site it is converted to page instead of page#section-2.

This is very important issue if pages are generated by another tool and can not be manually updated.

shakiba avatar Apr 30 '24 23:04 shakiba

@jxom Do you have any idea where I should look in the code to fix this?

I use typedoc with markdown plugin for api doc, and generated links have file extension, so I need to fix this issue. Currently I run an extra command to find and remove .md in generated files, but it is not a very neat solution.

shakiba avatar May 12 '24 08:05 shakiba

Fixed on vocs@next.

jxom avatar Feb 17 '25 08:02 jxom

I tried 1.0.0-next.20250217T102122, I guess this is not fixed yet. Here is how you can reproduce it:

[page - foo](./page#foo)

[page - bar](./page.md#bar)

page - foo link will have #foo, but page - bar link will not have #bar.

shakiba avatar Feb 17 '25 11:02 shakiba