Conversation
ralexstokes
left a comment
There was a problem hiding this comment.
thanks for the PR! left some comments
| 1. This has the benefit that clients can explicitly choose which RFCs to deploy | ||
| without buying into all other RFCs that may be included in that top-level version. | ||
| 2. Affording this level of granularity with a top-level protocol would imply creating as many variants | ||
| (e.g. /protocol/43-{a,b,c,d,...}) as the cartesian product of RFCs inflight, O(n^2). |
There was a problem hiding this comment.
i think the formatting change is fine although i will note that github renders the 1 and 2 sub-points as part of the outer numbered sequence so it goes 6,7,8,9 -- number 7 in the text is rendered as number 9
likely worth fixing to get meaning across
There was a problem hiding this comment.
Hi @ralexstokes ! This is precisely what this change fixes. Currently the inner list items are actually part of the outer list in Markdown abstract syntax. With the added indentation they truly become a separate inner list and the numbering works as expected when rendered to HTML.
| where `block_root` (an "0x" prefixed 32-byte hex string) and `epoch_number` (an integer) represent a valid `Checkpoint`. | ||
| Example of the format: | ||
|
|
||
| ``` | ||
| 0x8584188b86a9296932785cc2827b925f9deebacce6d72ad8d53171fa046b43d9:9544 | ||
| ``` | ||
| ``` | ||
| 0x8584188b86a9296932785cc2827b925f9deebacce6d72ad8d53171fa046b43d9:9544 | ||
| ``` | ||
|
|
There was a problem hiding this comment.
render seems fine and i'm happy w/ the formatting change
There was a problem hiding this comment.
Yup! To clarify, without this change, the list items 1. and 2. are in fact two distinct lists in Markdown abstract syntax (the second list being a list that start indexing from 2). This change makes them list items of a shared list.
|
Added one more commit to fix another case where a list was in fact two distinct lists in Markdown syntax. |
|
@hukkinj1 would it make sense to integrate the formatter into CI? Is the tool generally ready for that? |
|
@djrtwo yes sure, but it's important to know that the tool is very opinionated, so it may be hard/frustrating for contributors to write Markdown that passes the check. That means that they should actually remember to run the formatter. I'd suggest a few different approaches:
|
|
Also if you want a PR to showcase, there is some (intentionally very little) configuration that should be decided upon.
|
|
I opened #2291 already so you can have a look at how the formatting changes would look like. It's currently configured to
These are effortless to change ofc. |
Fix Markdown list indentation so that the lists are rendered as expected.
BTW, these errors were made obvious while I was testing a Markdown formatter I've been working on against this repository. The formatter could be a good match for this repository, being able to format Markdown tables, create/remove word wrap if desired, generate table of contents, format embedded code blocks (Python with Black) etc. I could set up a PR to showcase if this is something of interest to you?