If you use <router-link> component in the markdown it will be broken on GitHub since GitHub does not allow HTML and Vue template (obviously).
Links like [/docs/foo.md](/docs/foo.md) will be converted to corresponding links on GitHub, so it would be nice if Docute can convert it to corresponding link too using <router-link> instead of <a>.
The question is what kind of links should be converted, I think relative/absolute path ending with .md, like /^\.?\/.+\.md$/ would be fine. If you don't want certain markdown link to be converted, use HTML <a> tag instead.
But obviously on Docute the link should be: /docs/foo instead since we served ./website as root directory. An option like removeLinkPrefix: '/website' might be necessary then.
If you use
<router-link>
component in the markdown it will be broken on GitHub since GitHub does not allow HTML and Vue template (obviously).Links like
[/docs/foo.md](/docs/foo.md)
will be converted to corresponding links on GitHub, so it would be nice if Docute can convert it to corresponding link too using<router-link>
instead of<a>
.The question is what kind of links should be converted, I think relative/absolute path ending with
.md
, like/^\.?\/.+\.md$/
would be fine. If you don't want certain markdown link to be converted, use HTML<a>
tag instead.Example:
On GitHub:
On Docute:
But obviously on Docute the link should be:
/docs/foo
instead since we served./website
as root directory. An option likeremoveLinkPrefix: '/website'
might be necessary then.