Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix item numbering in chapter 8 #27

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

Closed

Conversation

Copy link
Contributor

@aharrison24 aharrison24 commented Sep 19, 2021
edited
Loading

Currently the numbered list in chapter 8 has the incorrect number against the 4th entry, because the markdown processor interprets it as a new list and starts the numbering at 1 again.

There doesn't seem to be any trivial way of marking up the list so that it starts at 4. discount doesn't seem to accept the {:start="4"} syntax that you can use with some other markdown processors.

This PR resorts to using some inline HTML to solve the problem. I suspect that might be unpalatable, so please feel free to summarily reject it! :-)

A different way of achieving more or less the same effect would be to use inline HTML to generate the list entry manually, like this:

&emsp;<span>4.</span> `free`: manually release/free a pair.</br>

It works... but it's probably less robust to changes in the CSS.

🤷

Copy link
Owner

You're right that all these solutions sound terrible.
I think I found the hack I prefer:

&nbsp;&nbsp;&nbsp;4. `free`: 

Copy link
Contributor Author

aharrison24 commented Sep 23, 2021
edited
Loading

Ah OK, the span tags don't actually add anything in this case do they. That'll teach me for cargo-culting code without taking the time to actually engage my brain.

One &emsp; or 3x &nbsp; looks like the least worst options!

@aharrison24 aharrison24 deleted the chapter8-item-numbering branch September 23, 2021 21:10
Copy link
Owner

I didn't know about &emsp;. I'll give that a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /