[{"name":"ScriptaV2.APISimple","comment":" Use `ScriptaV2.APISimple.compile` to transform source text to elm-ui HTML for the given markup language.\nYou will need the following imports in your Elm file:\n\n    import ScriptaV2.APISimple\n    import ScriptaV2.Msg exposing (MarkupMsg)\n    import ScriptaV2.Language exposing (Language)\n    import Element exposing (Element)\n\nYour `Msg` type definition should read:\n\n    type Msg\n        =  ...\n        | Render MarkupMsg\n\nThe choice of language is made from\n\n    type Language\n        = MicroLaTeXLang\n        | EnclosureLang\n        | SMarkdownLang\n\nin ScriptaV2.Language\n\n@docs compile\n\n","unions":[],"aliases":[],"values":[{"name":"compile","comment":" Compile source text to elm-ui HTML. The width of the rendered text in pixels is\ndefined by docWidth. The editCount should be 0 for a static document. For documents\nin a live editing context, the editCount should be increment after each edit.\nThis ensures that the rendered text is properly updated.\n","type":"ScriptaV2.Types.CompilerParameters -> String.String -> List.List (Element.Element ScriptaV2.Msg.MarkupMsg)"}],"binops":[]},{"name":"ScriptaV2.Msg","comment":" The ScriptaV2.Msg.MarkupMsg type is need for synchronization of the source and rendered\ntext when using the Codemirror editor.\n\n@docs MarkupMsg, SolutionState, Handling\n\n","unions":[{"name":"Handling","comment":" ","args":[],"cases":[["MHStandard",[]],["MHAsCheatSheet",[]]]},{"name":"MarkupMsg","comment":" ","args":[],"cases":[["SendMeta",["{ begin : Basics.Int, end : Basics.Int, index : Basics.Int, id : String.String }"]],["SendLineNumber",["{ begin : Basics.Int, end : Basics.Int }"]],["SelectId",["String.String"]],["ToggleTOCNodeID",["String.String"]],["HighlightId",["String.String"]],["GetPublicDocument",["ScriptaV2.Msg.Handling","String.String"]],["GetPublicDocumentFromAuthor",["ScriptaV2.Msg.Handling","String.String","String.String"]],["GetDocumentWithSlug",["ScriptaV2.Msg.Handling","String.String"]],["ProposeSolution",["ScriptaV2.Msg.SolutionState"]],["RequestCopyOfDocument",[]],["RequestToggleIndexSize",[]],["JumpToTop",[]],["LoadFile",["String.String","String.String"]],["NewPost",["String.String"]],["MMNoOp",[]]]},{"name":"SolutionState","comment":" ","args":[],"cases":[["Unsolved",[]],["Solved",["String.String"]]]}],"aliases":[],"values":[],"binops":[]},{"name":"ScriptaV2.Types","comment":" This module defines the core types used for configuring the Scripta compiler.\nThe main type is `CompilerParameters`, which controls how source text is compiled\nand rendered across all supported markup languages (MicroLaTeX, SMarkdown, L0/Enclosure).\n\n\n# Configuration\n\n@docs CompilerParameters, defaultCompilerParameters, Filter\n\n\n## Key Parameters\n\n  - **lang**: The markup language to compile (MicroLaTeX, SMarkdown, or Enclosure)\n  - **docWidth**: Width of the rendered document in pixels\n  - **editCount**: Increment this after each edit for live editing contexts (use 0 for static documents)\n  - **selectedId**: ID of the currently selected block for highlighting\n  - **theme**: Visual theme (Light or Dark)\n  - **idsOfOpenNodes**: List of IDs for expanded/collapsed sections\n\n\n## Usage\n\nFor simple use cases, start with `defaultCompilerParameters` and override the fields you need:\n\n    { defaultCompilerParameters\n        | lang = ScriptaV2.Language.MicroLaTeXLang\n        , docWidth = 600\n        , editCount = model.editCount\n    }\n\n","unions":[{"name":"Filter","comment":" ","args":[],"cases":[["NoFilter",[]],["SuppressDocumentBlocks",[]]]}],"aliases":[{"name":"CompilerParameters","comment":" ","args":[],"type":"{ windowWidth : Basics.Int, scale : Basics.Float, lang : ScriptaV2.Language.Language, docWidth : Basics.Int, editCount : Basics.Int, selectedId : String.String, selectedSlug : Maybe.Maybe String.String, idsOfOpenNodes : List.List String.String, filter : ScriptaV2.Types.Filter, theme : Render.Theme.Theme, longEquationLimit : Basics.Float, numberToLevel : Basics.Int, data : Dict.Dict String.String String.String }"}],"values":[{"name":"defaultCompilerParameters","comment":" ","type":"ScriptaV2.Types.CompilerParameters"}],"binops":[]}]