最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How can I increase size of rendered Markdown to-do checkmark in IntelliJ IDEA? - Stack Overflow

programmeradmin6浏览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

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

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

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

Share Improve this question edited Mar 25 at 6:36 sanitizedUser asked Mar 25 at 3:02 sanitizedUsersanitizedUser 2,1354 gold badges23 silver badges40 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 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: '⬜️';
  }
}

发布评论

评论列表(0)

  1. 暂无评论