<?php

return [
    'katex' => [
        'js_path' => env('KATEX_JS_PATH', '/js/katex.min.js'),
        'css_path' => env('KATEX_CSS_PATH', '/css/katex/katex.min.css'),
        'auto_init' => env('KATEX_AUTO_INIT', true),
    ],

    'render' => [
        'selector' => env('MATH_RENDER_SELECTOR', '.math-render'),
        'max_attempts' => env('MATH_RENDER_MAX_ATTEMPTS', 50),
        'delay' => env('MATH_RENDER_DELAY', 100),
        'error_handling' => env('MATH_RENDER_ERROR_HANDLING', true),
    ],

    'supported_formats' => [
        'inline' => ['$...$', '\(...\)'],
        'display' => ['$$...$$', '\[...\]'],
    ],

    'options' => [
        'throw_on_error' => false,
        'display_mode' => false,
        'strict' => 'warn',
        'trust' => false,
        'macros' => [
            '\\f' => '#1f(#2)',
        ],
    ],

    'hooks' => [
        'enable_livewire' => true,
        'enable_alpine' => true,
        'enable_filament' => true,
    ],
];
