Skip to content

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:

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


FenceNode.subtype


FenceNode.subtype : FenceNodeSubtype

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


FenceNode.italic : integer

italic correction

FenceNode.height


FenceNode.height : integer

required height

FenceNode.depth


FenceNode.depth : integer

required depth

FenceNode.options


FenceNode.options : integer

bitset of rendering options

FenceNode.class


FenceNode.class : integer

spacing related class