class FenceNode
- supers: Node
Warning: some of these fields are used by the renderer and might get adapted in the process.
Example:
assert.node_type("fence", nil, {
id = "fence (22)",
subtypes = { "unset (0)", "left (1)", "middle (2)", "right (3)", "no (4)" },
fields = {
"prev (-1)",
"next (0)",
"id (1)",
"subtype (2)",
"attr (3)",
"delim (4)",
"italic (5)",
"height (6)",
"depth (7)",
"options (8)",
"class (9)",
},
})
Reference:
- Corresponding C source code: texnodes.c#L765-L772
😱 Types incomplete or incorrect? 🙏 Please contribute!
fields
FenceNode.subtype
FenceNode.attr
FenceNode.attr : Node {
next: Node?,
prev: Node?,
id: integer,
subtype: integer,
head: Node?,
attr: Node,
}
list of attributes
FenceNode.delim
FenceNode.delim : DelimNode {
attr: Node,
small_char: integer,
small_fam: integer,
large_char: integer,
large_fam: integer,
}
delimiter specification
FenceNode.italic
italic correction
FenceNode.height
required height
FenceNode.depth
required depth
FenceNode.options
bitset of rendering options
FenceNode.class
spacing related class