Misaligned code block line numbers.

Open
#91 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
css
Domain
documentation

Research direction

Compare the code block in the conditional-loops.html admonition with the aligned block in string-conditionals.html, using the linked screenshots as references. Trace the styles applied to code blocks inside admonitions and adjust the formatting so line numbers align with the code without changing blocks outside admonitions.

Written by the indexing model from the issue text.

Description

The Issue:

Throughout the textbook, whenever a code block appears inside an admonition, the formatting of the line numbers causes them to be spaced differently than the code.

When code blocks appear outside of the admonitions, however, the line numbers match the code.

Here are a couple of links and screenshots to provide examples:

Links:
  1. Misaligned = https://education.launchcode.org/lchs/chapters/loops/conditional-loops.html#looping-if
  2. Aligned = https://education.launchcode.org/lchs/chapters/strings/string-conditionals.html#checking-with-in-and-not-in
Screenshots:
Misaligned-1 Aligned-1
Dominant language
CSS
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LaunchCodeEducation/lchs

All issues in LaunchCodeEducation/lchs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.