Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions acdc-parser/fixtures/tests/index_terms.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
= Index Terms Test

This is about ((Arthur)) the king.

(((Sword, Broadsword)))A concealed term for swords.

Using macro style: indexterm2:[Excalibur].

And concealed macro: indexterm:[Knights, Round Table].
281 changes: 281 additions & 0 deletions acdc-parser/fixtures/tests/index_terms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
{
"name": "document",
"type": "block",
"header": {
"title": [
{
"name": "text",
"type": "string",
"value": "Index Terms Test",
"location": [
{
"line": 1,
"col": 3
},
{
"line": 1,
"col": 18
}
]
}
],
"location": [
{
"line": 1,
"col": 1
},
{
"line": 1,
"col": 18
}
]
},
"attributes": {},
"blocks": [
{
"name": "paragraph",
"type": "block",
"inlines": [
{
"name": "text",
"type": "string",
"value": "This is about ",
"location": [
{
"line": 3,
"col": 1
},
{
"line": 3,
"col": 14
}
]
},
{
"name": "indexterm",
"type": "inline",
"term": "Arthur",
"visible": true,
"location": [
{
"line": 3,
"col": 15
},
{
"line": 3,
"col": 24
}
]
},
{
"name": "text",
"type": "string",
"value": " the king.",
"location": [
{
"line": 3,
"col": 25
},
{
"line": 3,
"col": 34
}
]
}
],
"location": [
{
"line": 3,
"col": 1
},
{
"line": 3,
"col": 34
}
]
},
{
"name": "paragraph",
"type": "block",
"inlines": [
{
"name": "indexterm",
"type": "inline",
"term": "Sword",
"secondary": "Broadsword",
"visible": false,
"location": [
{
"line": 5,
"col": 1
},
{
"line": 5,
"col": 23
}
]
},
{
"name": "text",
"type": "string",
"value": "A concealed term for swords.",
"location": [
{
"line": 5,
"col": 24
},
{
"line": 5,
"col": 51
}
]
}
],
"location": [
{
"line": 5,
"col": 1
},
{
"line": 5,
"col": 51
}
]
},
{
"name": "paragraph",
"type": "block",
"inlines": [
{
"name": "text",
"type": "string",
"value": "Using macro style: ",
"location": [
{
"line": 7,
"col": 1
},
{
"line": 7,
"col": 19
}
]
},
{
"name": "indexterm",
"type": "inline",
"term": "Excalibur",
"visible": true,
"location": [
{
"line": 7,
"col": 20
},
{
"line": 7,
"col": 41
}
]
},
{
"name": "text",
"type": "string",
"value": ".",
"location": [
{
"line": 7,
"col": 42
},
{
"line": 7,
"col": 42
}
]
}
],
"location": [
{
"line": 7,
"col": 1
},
{
"line": 7,
"col": 42
}
]
},
{
"name": "paragraph",
"type": "block",
"inlines": [
{
"name": "text",
"type": "string",
"value": "And concealed macro: ",
"location": [
{
"line": 9,
"col": 1
},
{
"line": 9,
"col": 21
}
]
},
{
"name": "indexterm",
"type": "inline",
"term": "Knights",
"secondary": "Round Table",
"visible": false,
"location": [
{
"line": 9,
"col": 22
},
{
"line": 9,
"col": 53
}
]
},
{
"name": "text",
"type": "string",
"value": ".",
"location": [
{
"line": 9,
"col": 54
},
{
"line": 9,
"col": 54
}
]
}
],
"location": [
{
"line": 9,
"col": 1
},
{
"line": 9,
"col": 54
}
]
}
],
"location": [
{
"line": 1,
"col": 1
},
{
"line": 9,
"col": 54
}
]
}
Loading
Loading