Url fragment is dropped if the url includes file type.
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.
@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.
Fixed on vocs@next.
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.