xc icon indicating copy to clipboard operation
xc copied to clipboard

Support for indented code blocks

Open polm opened this issue 6 months ago • 1 comments

Hello,

I was trying to get started with xc since it seems like a great idea, but I noticed that indented code blocks seem to not be recognized. To give an example here:

echo this works
echo this does not work

I'm not sure why this would be the case, but is it an intentional feature? It doesn't seem to be mentioned in the docs anywhere.

One other thing - the README doesn't actually state that tasks have to be under a "tasks" heading anywhere. That is in the docs, but would it make sense to mention it in the README to?

polm avatar Jun 25 '25 08:06 polm

Hi,

Interesting observation! I guess it isn't an intentional feature, just a missing one :) I used backtick fences because it makes parsing much simpler.

I'm happy to take a PR on that feature, or I can work on it when I get chance.

On your second point, I think I'll remove the example code from the README and link to the docs instead to avoid confusion.

joerdav avatar Jun 25 '25 09:06 joerdav