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

Numbered lists hide number after 9 in preview #102

Open
hgezim opened this issue Nov 30, 2016 · 3 comments
Open

Numbered lists hide number after 9 in preview #102

hgezim opened this issue Nov 30, 2016 · 3 comments
Labels

Comments

@hgezim
Copy link

hgezim commented Nov 30, 2016

  1. Create numbered list with 12 items

Expected:
10, 11, 12 to show properly.

Results:
cursor_and_custom_templates_md___-_eme

@egoist egoist added the bug label Dec 1, 2016
@krissrex
Copy link
Contributor

The ol element is supposed to have 2em padding, but it is overridden to be 1.3em, possibly in reset.css.

@krissrex
Copy link
Contributor

krissrex commented Dec 20, 2016

Using padding will most likely cause an issue when you get to item number 100, but I believe that is a rare case.
Anyways, an alternative fix is to change the counter to align to the left, instead of the right.
This makes the entries unaligned after item 10, which might not be desirable. It would also be inconsistent with the exported PDF, unless the print stylesheet is updated too.

li {
  list-style-position: inside;
}
ol, ul {
  padding-left: 0;
}

image

@egoist
Copy link
Owner

egoist commented Dec 28, 2016

Current look:

2016-12-28 10 54 11

It won't overflow unless the index is over 99 or you use a really big font

@krissrex the left-align thing does not look nice either (however better than being overflow)

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

No branches or pull requests

3 participants