joerdav/xc

Alternative markdown syntax to define `Tasks section`

PeteXC opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
Referring to this: https://www.markdownguide.org/basic-syntax/#alternate-syntax

When using:

Tasks
---

Should also be allowed to define the Tasks section as it is an allowed alternative syntax to the H2 header. Currently xc doesn't detect it

Describe the solution you'd like
XC cli works with the alternative syntax

Describe alternatives you've considered
An alternative is to just keep as-is, but document clearly that it's not supported

Good spot.

This will involve a refactor as currently the parser goes line by line, there will have to be an ability to look a line ahead.

Just pushed the code I spiked last night to add this. Need to make sure my refactor doesn't break any exising functionality before merging.