Skip to content

BracketMatcher

Defined in: extensions/matchBrackets/index.ts:7

BracketMatcher(editor, options): any

Defined in: extensions/matchBrackets/index.ts:7

PrismEditor<{ }>

EditorOptions<{ }>

any

readonly brackets: Bracket[]

Defined in: extensions/matchBrackets/index.ts:17

Array of tuples containing in the following order:

  • The bracket’s Token
  • Its starting position
  • Its ending position
  • Its level of nesting
  • Its text content
  • Whether it’s an opening bracket

readonly pairs: (number | undefined)[]

Defined in: extensions/matchBrackets/index.ts:19

Array mapping the index of a bracket to the index of its matching bracket.