Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Listings in Chapter 06 to <Listing> #3977

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

SpectralPixel
Copy link

Finally, here is chapter 06 adapted to the new <Listing> pre-processor. I'm not sure if everything works as intended since I couldn't get mdbook to behave properly on my machine, so please check the sanity of my changes.

I also changed numberless listings (as in, they have a file name, but no number), so feel free to revert those commits if they are not yet fully functional by the time they will be merged.

Please also check all the comments I have left in commit descriptions and the issue thread for further concerns I might have about the code.

(By the way, I also fixed some conflicts while moving the commits around)

Issue #3919

My bad, when I copy and pasted the captions from the `<span>` into the `<Listing>`, I failed to realize that my text editor copied over the line numbers into the strings. Removed them, should be all good now.
…cter limit (READ DESC.)

I'm unsure whether wrapping the text may cause the listing text to be wrapped too as the newlines are found within quotation marks. If it causes issues, feel free to revert this commit. Another odd thing is that my editor uncolored the closing `</Listing>` tag when I split the lines. Maybe the newline characters need to be escaped with a backslash?
@chriskrycho
Copy link
Contributor

Thanks! Looks like you have at least one unclosed <Listing>! Let me know when you have it fixed and I’ll do a review pass!

@chriskrycho
Copy link
Contributor

Ah, I see your last commit – that one is the problem, I expect. HTML blocks (like these, but also just like the old <span>-based versions) are not subject to the same rule, and Markdown parsers generally don’t handle wrapped tags well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants