hexo-include-markdown icon indicating copy to clipboard operation
hexo-include-markdown copied to clipboard

Nested md includes?

Open nckh opened this issue 8 years ago • 4 comments

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 avatar Nov 22 '17 07:11 nckh

@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>

tea3 avatar Nov 22 '17 08:11 tea3

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 avatar Nov 29 '17 08:11 nckh

@nckh Wow, surprised with a wonderful upgrade! Thank you so much for upgrade. Could I merge that repo?

tea3 avatar Nov 29 '17 08:11 tea3

I'd prefer if you could wait a bit. Will keep you posted! :)

nckh avatar Nov 29 '17 12:11 nckh