Kotoba.Nodes.CodeHighlight (Kotoba v0.5.0)

Copy Markdown View Source

A token of text in a code block (Lexical type "code-highlight").

highlight_type is the token type from the highlighter, for example "keyword", or nil. The other fields are the same as in Kotoba.Nodes.Text.

Summary

Types

t()

@type t() :: %Kotoba.Nodes.CodeHighlight{
  detail: term(),
  extra: term(),
  format: term(),
  highlight_type: term(),
  mode: term(),
  style: term(),
  text: term(),
  version: term()
}