Closed matklad closed 1 year ago
{.x} [link]: url {.x} [^foot]: note
{ "tag": "doc", "references": { "link": { "destination": "url", "attributes": { "class": "x" } } }, "footnotes": { "foot": { "tag": "footnote", "children": [ { "tag": "para", "attr": { "class": "x" }, "children": [ { "tag": "str", "text": "note" } ] } ] } } }
This feels a bit inconsistent to me. I'd expect something like:
{ "tag": "doc", "references": { "link": { "tag": "reference_definition", "attr": { "class": "x" }, "destination": "url", } }, "footnotes": { "foot": { "tag": "footnote", "attr": { "class": "x" }, "children": [ { "tag": "para", "children": [ { "tag": "str", "text": "note" } ] } ] } } }
tag
attr
attributes
This feels a bit inconsistent to me. I'd expect something like:
tag
for both kinds of referencesattr
rather thanattributes
for reference_definition