The Issue

I recently try to fix some of errors related to generating hexo post and received the following feedback from terminal :

It seems that some of my .md file have the incorrect YAML format. However when I checked the reported error position, there was nothing wrong with my YAML head in line3, column1. After a long journey of troubleshooting (using method like binary search), I found that the issue was caused by the strict formatting requirement of pandoc-renderer. The problem is shown below:

1
2
3
4
5
6
7
8
9
10
Wrong:

---
###

Correct:

---

###

It's ridiculously simple but hard to find!