NativeElixirPdfUtilities.Validators.HtmlQuoteValidator (native_elixir_pdf_utilities v1.1.0)

View Source

Validates CSS quotation pairs and resolves authored quote generation.

Summary

Functions

Resolves automatic quote pairs using the element's authored inherited language.

Parses inherited quote keywords or complete opening/closing CSS string pairs.

Produces one quote token and the next document-wide nesting depth.

Functions

pairs(style, node, ancestors)

@spec pairs(map(), map(), [map()]) :: [{String.t(), String.t()}]

Resolves automatic quote pairs using the element's authored inherited language.

parse(value, style)

@spec parse(String.t(), map()) :: {:ok, term()} | :error

Parses inherited quote keywords or complete opening/closing CSS string pairs.

token(kind, pairs, depth)

@spec token(atom(), [{String.t(), String.t()}], non_neg_integer()) ::
  {String.t(), non_neg_integer()}

Produces one quote token and the next document-wide nesting depth.