Skip to content

class MarkNode

  • supers: Node

A mark node has a mark field that points a token list that contains the user’s \mark text.

Example:

assert.node_type("mark", nil, {
  id = "mark (4)",
  fields = {
    "prev (-1)",
    "next (0)",
    "id (1)",
    "subtype (2)",
    "attr (3)",
    "class (4)",
    "mark (5)",
  },
})

Reference:

😱 Types incomplete or incorrect? 🙏 Please contribute!


fields


MarkNode.subtype


MarkNode.subtype : integer

unused

MarkNode.attr


MarkNode.attr : Node {
    next: Node?,
    prev: Node?,
    id: integer,
    subtype: integer,
    head: Node?,
    attr: Node,
}

A list of attributes.

MarkNode.class


MarkNode.class : integer

the mark class

MarkNode.mark


MarkNode.mark : table

a table representing a token list