Open chalin opened 1 month ago
I'm looking into the markdown-toc
GH action failure.
Hmm, the markdown-toc
tool seems to be cleaning up more than just the TOC. It strips the comment from the front matter and removes any blank lines between the title and the front matter 🤷🏼♂️. I'll commit the change so that you can see.
Yes, I confirm that it's a known issue:
So strange, markdown-toc
is also adding blank lines at the end of files!
Ok, well ... due to unresolved bugs in markdown-toc
, we can't inline Hugo front matter 🤷🏼♂️
Ref.: https://github.com/jonschlinkert/markdown-toc/issues/151#issuecomment-2105313699.
I've removed the commits that contained the markdown-toc
mangled content. So there should be only one GH action failure, the markdown-toc
check.
So, it seems that this can't be merged until markdown-toc
is fixed. :-/
I could modify the markdown-toc
make rule to temporarily comment out the front matter, but I'm not sure that it's worth it. WDYT @reyang et all?
Approved pending TOC fix.
Ok, I'll tackle on the markdown-toc
workaround as soon as I can.
This PR was marked stale due to lack of activity. It will be closed in 7 days.
Nope, not stale, I was OOO.
Heads up that I'm really swamped atm, so I'm unsure when I'll be able to get to this.
This PR was marked stale due to lack of activity. It will be closed in 7 days.
This is still relevant and I'll get to it as soon as I can.
Just curious if you've considered use of https://www.npmjs.com/package/doctoc instead? I'll investigate this as a possible less buggy alternative, and/or propose a workaround.
This PR was marked stale due to lack of activity. It will be closed in 7 days.
Still valid. Will get to it eventually 😄.
/cc @reyang @carlosalberto @svrnm