mediawiki-extensions-Discus.../tests/qunit/other/no-heading.json
Bartosz Dziewoński e29b8173bf Handle comments before first section heading
The loop in parser.js assumed that there was always a heading before
any comments (not counting the page title, only section headings).

Bug: T243869
Change-Id: I3a0bb06716e75d4a17e25c40748673a071ee5f30
2020-01-30 00:14:46 -08:00

26 lines
422 B
JSON

[
{
"type": "heading",
"range": [
"0",
"0"
],
"level": 0,
"id": null,
"replies": [
{
"type": "comment",
"timestamp": "2020-01-22T23:19:00.000Z",
"author": "Matma Rex",
"range": [
"0/1/0",
"0/1/2/29"
],
"level": 1,
"id": "Matma Rex|2020-01-22T23:19:00.000Z|0",
"replies": []
}
]
}
]