bids-specification icon indicating copy to clipboard operation
bids-specification copied to clipboard

ENH: Render code blocks with language "tsv" as tables

Open effigies opened this issue 1 year ago • 4 comments

This is another go at https://github.com/bids-standard/bids-specification/issues/644 along the lines of https://github.com/bids-standard/bids-specification/pull/1783#issuecomment-2062890572.

It's not working 100% for me, but I've maxed out my time on this. Pushed to upstream so others can take it up or open PRs against it.

The code for this does not need to live in bidsschematools, but that's the quickest way to get something into the import namespace.

cc @Remi-Gau

effigies avatar Apr 18 '24 14:04 effigies

Does not render for:

image

Does render, but with inserted None for:

image

Similarly successful but with additional None for the other files. The first one might be an effect of using it twice in a file? The two bugs may be related. I think the problem is probably upstream.

effigies avatar Apr 18 '24 14:04 effigies

that's way quicker than anything I would have done

I can try tweaking this to see if I can make it work

Remi-Gau avatar Apr 18 '24 14:04 Remi-Gau

FWIW I think this is not an exclude-from-changelog contribution, as it affects how to interpret what's seen in the spec.

effigies avatar Apr 19 '24 13:04 effigies

FWIW I think this is not an exclude-from-changelog contribution, as it affects how to interpret what's seen in the spec.

that's fair

Remi-Gau avatar Apr 21 '24 07:04 Remi-Gau