MatthieuBizien / roam-to-git

Automatic RoamResearch backup to Git
MIT License
550 stars 133 forks source link

formatting does not works for Markdown heading #30

Closed JimmyLv closed 4 years ago

JimmyLv commented 4 years ago
- ## Heading2
  - list1
  - list2
- ### Heading3
  - list1
  - list2

=> Expected Behavior:

## Heading2
  - list1
  - list2
### Heading3
  - list1
  - list2
MatthieuBizien commented 4 years ago

Removing the bullets does not work, as - list1\n - list2 will be considered as code. Note that we use 4 spaces before the bullets, as in Roam export.

Demo:

## Heading2
    - list1
    - list2

Heading2

- list1
- list2

It would also complicate some cases, like if list1 is an indented title.