CarbonModel

public struct CarbonModel : Codable, Equatable

Represents the configuration for rendering carbon snippets.

  • Code to render as a Carbon image.

    Declaration

    Swift

    public let code: String
  • Style to apply to the generated snippet.

    Declaration

    Swift

    public let style: CarbonStyle
  • Initializes a CarbonModel

    Declaration

    Swift

    public init(code: String, style: CarbonStyle)

    Parameters

    code

    Code to render as a Carbon image.

    style

    Style to apply to the generated snippet.