speced / bikeshed

:bike: A preprocessor for anyone writing specifications that converts source files into actual specs.
https://speced.github.io/bikeshed
Creative Commons Zero v1.0 Universal
1.12k stars 200 forks source link

Diffs and formatting in code blocks #1267

Open brycelelbach opened 6 years ago

brycelelbach commented 6 years ago

A rendered bikeshed document describing this issue can be found here.

jfbastien commented 6 years ago

I was talking to someone (can't remember who) about italic terms. I think there aren't that many of them (implementation-defined, see below, etc)... Those could be attributes on the <xmp> tag, with a few defaults for lang=c++.

For red/green lines, I have no opinion.

brycelelbach commented 6 years ago

What if we handled all of these by adding a hook for custom preprocessing passes that run on code blocks to bikeshed? This would allow us to customize code blocks in WG21 bikeshed documents without disturbing markdown parsing for other spec groups. It could also give us the ability for individual documents to customize their parsing via a special <pre> block that Bikeshed recognizes, just like metadata.