configureAsMathMlContainer

Type: Function

How to get configureAsMathMlContainer?

JavaScript

import configureAsMathMlContainer from 'fontoxml-mathml/src/configureAsMathMlContainer.js'

Configure the given selector as a mathml container.

Mathml containers contain math ml. They are however not the root node.

Example usage:

JavaScript

// Configure a situation like this:
'<section><mathml-container><math:mathml>...</math:mathml></mathml-container></section>'
configureAsMathMlContainer(sxModule, 'self::mathml-container', undefined, 'self::math:mathml');
// Or a situation like this:
'<section><math:mathml>...</math:mathml></section>'
configureAsMathMlContainer(sxModule, 'self::math:mathml', undefined, 'self::math:mathml');

Arguments

  1. sxModule

    (Required)

    Type: SxModule

  2. selector

    (Required)

    Type: XPathTest

    The selector that is a mathml container

  3. markupLabel

    (Required)

    Type: String

    Default value

  4. mathElementSelector

    (Optional)

    Type: XPathTest

    A selector which should match an (inclusive) descendant containing the actual MathML. Defaults to the math element in the MathML namespace.

  5. options

    (Optional)

    Additional options for this mathml container