seikichi / restructured

Pure JavaScript reStructuredText parser
58 stars 15 forks source link

Title and subtitle don't work in README example #1

Closed bgotink closed 7 years ago

bgotink commented 7 years ago

The title and subtitle are missing when I run the example in the README. The output I get is

{
  "type": "document",
  "children": [
    {
      "type": "section",
      "children": [
        {
          "type": "section",
          "children": [
            {
              "type": "paragraph",
              "children": [
                {
                  "type": "text",
                  "text": "This is a paragraph.\n"
                }
              ]
            },
            {
              "type": "bullet_list",
              "children": [
                {
                  "type": "list_item",
                  "children": [
                    {
                      "type": "paragraph",
                      "children": [
                        {
                          "type": "text",
                          "text": "This is item 1\n"
                        }
                      ]
                    }
                  ]
                },
                {
                  "type": "list_item",
                  "children": [
                    {
                      "type": "paragraph",
                      "children": [
                        {
                          "type": "text",
                          "text": "This is item 2\n"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
seikichi commented 7 years ago

Hi @bgotink,

Sorry, I fixed bugs and updated the restructured to 0.0.7 (npm). In 0.0.7, I changed the output format slightly to have a more compatible with docutils. See README.md.

bgotink commented 7 years ago

Thanks a lot! :)