• Resolved bigfatfrodo

    (@bigfatfrodo)


    Hi,

    Is there a way to pass options like fleqn=true to a KaTeX Gutenberg block?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Author Thomas Churchman

    (@beskhue)

    This is not currently supported. It might be interesting for a future release.

    As a workaround for now, you could edit scripts/resource.php. Find this segment:

    katex.render(
        ele.textContent,
        ele,
        {
            displayMode: ele.getAttribute("data-katex-display") === 'true',
            throwOnError: false
        }
    );
    

    and change it to:

    katex.render(
        ele.textContent,
        ele,
        {
            displayMode: ele.getAttribute("data-katex-display") === 'true',
            throwOnError: false,
            fleqn: true
        }
    );
    
Viewing 1 replies (of 1 total)
  • The topic ‘Katex Gutenberg Block Options’ is closed to new replies.