Simre1 / neorg-haskell-parser

MIT License
91 stars 7 forks source link

Ordered lists are converted to unordered lists #4

Closed p00f closed 2 years ago

p00f commented 2 years ago

Title This neorg:

~ bar
~~ baz

- bar
-- baz

produces this output:

{
  "pandoc-api-version": [
    1,
    22,
    1
  ],
  "meta": {},
  "blocks": [
    {
      "t": "BulletList",
      "c": [
        [
          {
            "t": "Para",
            "c": [
              {
                "t": "Str",
                "c": "bar"
              }
            ]
          },
          {
            "t": "BulletList",
            "c": [
              [
                {
                  "t": "Para",
                  "c": [
                    {
                      "t": "Str",
                      "c": "baz"
                    }
                  ]
                }
              ]
            ]
          }
        ]
      ]
    },
    {
      "t": "BulletList",
      "c": [
        [
          {
            "t": "Para",
            "c": [
              {
                "t": "Str",
                "c": "bar"
              }
            ]
          },
          {
            "t": "BulletList",
            "c": [
              [
                {
                  "t": "Para",
                  "c": [
                    {
                      "t": "Str",
                      "c": "baz"
                    }
                  ]
                }
              ]
            ]
          }
        ]
      ]
    }
  ]
}
Simre1 commented 2 years ago

This is fixed now for ordered lists. However, most of the other list types do not work yet since they have only been added recently to neorg.

p00f commented 2 years ago

Thanks!