Open chriskrycho opened 1 month ago
I'd like to help with chapter 1.
Thanks for the feedback for my pervious contribution! I plan to work on converting chapters 2 and 3
Very good! Thank you! 💙
I'll do chapters 6-10. Already working on it.
I am working on converting chapter 11.
I'm in the process of converting 12-15. It is mostly working but all captions which have angle brackets (eg Box<T>
) are breaking the xml parser. Will work on handling the necessary escape characters.
Interesting – I would not have expected that! 🤔 Let me know what you come up with.
The issue appears to be that <
is not a valid character in the body of an attribute in XML. These characters have to be escaped but with the ListingBuilder
taking things by reference its a little trickier.
I've been quite busy over here, I hope to get back to work soon and finish the chapters.
How do I build the mdbook with the Listing pre-processor? If I recall correctly, <Listing>
support hasn't been upstreamed yet, so how do I test the book? Or is that responsibility offloaded to code reviewers? Thanks :)
Also, what about code that is preceded by a filename, yet doesn't have a listing number? Are these also turned into <Listing>
s that don't have a number or caption?
(Edit: I'll do these as well for now, feel free to revert them later.)
As of #3918, we have a preprocessor that allows us to author with a custom HTML tag,
Listing
, roughly as if it were a component in a templating language. This input:As described in the PR adding support for this, the result is more accessible HTML, which will also give us a nice way to hook in for styling things better if we so choose.
If you’d like to help, please leave a comment below noting which chapter you’d like to pick up so folks don’t do duplicate work! If it already has a user handle by it, please don’t work on that chapter.
Note for contributors: when converting to a
<Listing>
, you can drop the leadingListing <number>:
from thecaption
arg, since it handles that automatically with thenumber
arg.