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
  • #847
Closed
Open
Issue created Jun 24, 2014 by Peter Krautzberger@pkraContributor

Bug: line breaks in annotations are lost

Issue Summary

Reported on the MathJax user group.

If MathML annotations contain linebreaks, these are lost during processing.

Steps to Reproduce

  1. Let the following render with MahJax

    <math>
    <semantics xref="p1.1.m1.1.cmml"><mo>Test</mo>
    
        <annotation encoding="application/x-tex">{\displaystyle{\displaystyle\sum_{k=1}^{\infty}\frac{\mathop{\zeta\/}\nolimits%
    \!\left(2k\right)}{k}z^{2k}=\mathop{\ln\/}\nolimits\!\left(\frac{\pi z}{%
    \mathop{\sin\/}\nolimits\!\left(\pi z\right)}\right)}}</annotation>
      </semantics>
    </math>
  2. Check that Show Math => annotation => TeX gives

    {\displaystyle{\displaystyle\sum_{k=1}^{\infty}\frac{\mathop{\zeta/}\nolimits% !\left(2k\right)}{k}z^{2k}=\mathop{\ln/}\nolimits!\left(\frac{\pi z}{% \mathop{\sin/}\nolimits!\left(\pi z\right)}\right)}}

Similarly for showing the (non-original) MathML source.

This is a bug because it makes the annotations unusable.

Technical details

  • MathJax Version: 2.3+
Assignee
Assign to
Time tracking