hexo-include-markdown
hexo-include-markdown copied to clipboard
Nested md includes?
Hello,
Seems it is not possible to include a markdown file from another markdown file that's included itself. Is this feature coming?
Thanks!
@nckh Hi , This plugin don't support it yet. Do you want to upgrade about the following case ?
Sample Case
your-hexo-blog
├ source/
├ _posts/
└ hello-world.md
└ _template/
├ template.md
└ nested_template.md
hello-world.md
---
title: Hello World
---
<!-- md template.md -->
template.md
### include me ?
Here is the `template.md`'s content . This content can read from hello-world.md.
<!-- md nested-template.md -->
nested-template.md
Here is the `nested-template.md`'s content . This content can't read from template.md.
Result (hello-world.html)
<p>Here is the <code>template.md</code>'s content .This content can read from hello-world.md.</p>
Thanks for your reply teaさん! For now I created a fork at https://github.com/nckh/hexo-include-markdown with:
- nested include support
- refactor with async/await
- basic unit tests
@nckh Wow, surprised with a wonderful upgrade! Thank you so much for upgrade. Could I merge that repo?
I'd prefer if you could wait a bit. Will keep you posted! :)