antfu / vite-plugin-md

Markdown with Vue for Vite
MIT License
604 stars 89 forks source link

fix: markdown relative link resolution error #89

Closed kecrily closed 2 years ago

kecrily commented 2 years ago

If you use a relative link to refer to a cross-directory md file, there is a missing / at the beginning that prevents <RouterLink /> from jumping.

In the use of . /go/hi.md and go/hi.md can be problematic. But not with /go/hi.md.

yankeeinlondon commented 2 years ago

Great, nice fix ... glad you caught that. :)