configureAsInlineMathMlContainer

Type: Function

How to get configureAsInlineMathMlContainer?

JavaScript

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

Configure the given selector as an inline mathml container.

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

Example usage:

JavaScript

// Configure a situation like this:
'<paragraph>This is an equation: <mathml-container><math:mathml>...</math:mathml></mathml-container></paragraph>'
configureAsInlineMathMlContainer(sxModule, 'self::mathml-container', undefined, 'self::math:mathml');
// Or a situation like this:
'<paragraph>This is also an equation: <math:mathml>...</math:mathml></paragraph>'
configureAsInlineMathMlContainer(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