0

When I increase the font size of a rendered Markdown document with to-do list in IntelliJ IDEA, the size of the checkmarks remains small in the Preview section. Is there a built-in way or a plugin that would fix this issue?

Example document

## Topics

- [x] Variables
- [x] Conditions
- [x] Loops
- [ ] Functions
- [ ] Classes

Rendered content

To-do checkmarks appear too small relative to the text of the list item

I also tried add the following custom CSS:

input[type=checkbox] {
  width: 0;
  margin-right: 5rem;
  font-size: 4rem;
  line-height: 2rem;

  &:checked::after {
    content: '✔️';
  }
  &:not(:checked)::after {
    content: '⬜️';
  }
}

However, this code results in overlapping checkboxes.

After adding custom CSS

Overlapping checkboxes after adding custom CSS above

1 Answer 1

0

You could style them, here's a starting place.

Settings -> Languages & Frameworks -> Markdown -> Custom CSS

input[type=checkbox] {
  width: 0;
  margin-right: 5rem;
  font-size: 4rem;
  line-height: 2rem;

  &:checked::after {
    content: '✔️';
  }
  &:not(:checked)::after {
    content: '⬜️';
  }
}

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

It didn't work as intended. Look at the rendered content. As you can see, the checkmarks are different than in your image but they also overlap. Edit your answer, please, to tackle this problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.