joerdav / xc

Markdown defined task runner.
https://xcfile.dev/
MIT License
1.16k stars 27 forks source link

Alternative markdown syntax to define `Tasks section` #10

Closed PeteXC closed 2 years ago

PeteXC commented 2 years ago

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

joerdav commented 2 years ago

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.

joerdav commented 2 years ago

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.