Skip to content

New rule: math-mtable-one-cell #21

Description

@TimArborealis

Suggested name: math-mtable-one-cell

Sometimes math content is marked up in an <mtable> when it should not be. To check for this, we need a rule which catches instances of <mtable> with one single cell.

The validator should catch all instances of <mtable> which contain exactly one <mtd> element.

Example:

<math xmlns="http://www.w3.org/1998/Math/MathML">
    <mtable>
        <mtr>
            <mtd>
                <mn>2</mn>
                <mo>+</mo>
                <mn>2</mo>
            </mtd>
        <mtr>
    </mtable>
</math>

See more examples in test_issue_21.epub

@MartheGjelstad, thoughts? (created this issue with @AntonLMTM )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Ready for developerThe rule has been reviewed and is ready to be changed in the validator.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions