lib module

from-text function

#let from-text(source, profile: "permissive", fail-on-error: true)

Documentation

Parse and validate SWC source already held in memory.

Parameters

  • source (str, bytes): SWC source text or its byte representation.
  • profile (str): Validation profile, either "permissive" or "incf-strict". Default: "permissive".
  • fail-on-error (bool): Whether validation errors should stop evaluation. Default: true.

Returns

dictionary

Defined in lib.typ:162.

Source

Module
lib
Defined in
lib.typ:162
Source
View source