documentation/test/fixture/example-caption.output.md.json

133 lines
2.6 KiB
JSON

{
"type": "root",
"children": [
{
"depth": 1,
"type": "heading",
"children": [
{
"type": "text",
"value": "foo"
}
]
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "This function returns the number one.",
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 38
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 38
},
"indent": []
}
},
{
"type": "strong",
"children": [
{
"type": "text",
"value": "Examples"
}
]
},
{
"type": "paragraph",
"children": [
{
"type": "emphasis",
"children": [
{
"type": "text",
"value": "demonstrates how to run foo"
}
]
}
]
},
{
"lang": "javascript",
"type": "code",
"value": "foo(1);"
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Returns "
},
{
"type": "strong",
"children": [
{
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number",
"type": "link",
"children": [
{
"type": "text",
"value": "Number"
}
]
}
]
},
{
"type": "text",
"value": " "
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "numberone",
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 10
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 10
},
"indent": []
}
}
]
}
]
}