sinedied / publish-devto

:postbox: GitHub Action to publish markdown files on dev.to platform, with assets hosted on GitHub.
MIT License
38 stars 8 forks source link

Deploy fail due to Jekyll `include` syntax - How to FIX? #35

Open rnag opened 7 months ago

rnag commented 7 months ago

Hi,

Thanks for creating this lib @sinedied . I have QQ, when I have blog post usually with these contents

{% include <site>.html %}

Now to be honest i'm really no clue how is this action is parsing that above. Like if it reads the html file directly and parses as markdown. The problem actually is even within that <site>.html file, I have some kramdown syntax in there, which is not compatible with markdown:

Blah blah... lolol
{: .notice--info}

Just an example of course. Now I'm not 100% sure how this action is parsing it. But in either case it's failing it with a nondescriptive error. I had to do trail-and-error to figure out that the cause is because of {% include ... %} syntax.

Q

Ideally, my Q here is as follow:

Appreciate help or clarification on this. Thanks