Aliases in @include
#2385
-
This might be a silly question with an obvious answer, in a project I have .md files imported as a package from github (i.e. they are in What I originally attempted was to create an alias (similar to what is already being used for markdown images) in my
Then inside my index.md file for a section I wanted to use e.g.
This errors because it seems the entire string is being passed to the include function:
Obviously it works if I reference the file directly:
But it would be useful to not have to put the relative path in like that and just have a single alias that always works. I also don't want to modify the global include behaviour because other files are being used correctly when placed within the normal Is this possible to do? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Edited: https://vuepress-theme-hope.github.io/v2/md-enhance/guide/include.html#advanced We already provide option for you |
Beta Was this translation helpful? Give feedback.
It is possible to add alias support. We will add this in next version.Edited: https://vuepress-theme-hope.github.io/v2/md-enhance/guide/include.html#advanced
We already provide option for you