remarkjs / remark

markdown processor powered by plugins part of the @unifiedjs collective
https://remark.js.org
MIT License
7.66k stars 358 forks source link

Add task list formatting #999

Closed txtyash closed 2 years ago

txtyash commented 2 years ago

Initial checklist

Problem

Task list is incorrectly formatted. Remark-ls escapes brackets.

Solution

There's no need to escape brackets. Just format task list like prettier does.

Alternatives

-

wooorm commented 2 years ago

Not enough info.

github-actions[bot] commented 2 years ago

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.

txtyash commented 2 years ago

@wooorm The task list should look like this:

- [ ] Artificial Intelligence
  - [ ] Unit III **Adversarial Search and Games**
  - [ ] Unit IV **Knowledge**
  - [ ] Unit V **Reasoning**
  - [ ] Unit VI **Planning**
  - [ ] Prelim Questions

but on saving the file it looks like:

*   \[ ] Artificial Intelligence
    *   \[ ] Unit III **Adversarial Search and Games**
    *   \[ ] Unit IV **Knowledge**
    *   \[ ] Unit V **Reasoning**
    *   \[ ] Unit VI **Planning**
    *   \[ ] Prelim Questions