Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #1774
Closed
Open
Issue created Jun 21, 2017 by Administrator@rootContributor

mi-tag with mathvariant creates extra spans

Created by: Diaan

I have an mi-tag with multiple characters in it that I want printed italic. According to the MathML specs I should add the mathvariant attribute and set it to italic. This works, it prints the contents italic, but it also adds unnecessary span-tags; all but the first character are in a seperate span with the font-family set as a style property. This causes issues for me because I copy the generated HTML and the extra spans cause issues there.

I found the issue started arising in version 2.4. I made two codepens, one with version 2.3-latest, which can be found here And one with 2.7-latest, which can be found here I've added some css to show the spans in the generated code. I also added some alternative versions, with mtext and mo-tags, also using mathvariant="italic", but with those there are no issues.

Is this a feature that can somehow be disabled with a configuration setting or is it a bug?

Assignee
Assign to
Time tracking