Skip to content
GitLab
    • Explore Projects Groups Snippets
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
  • Merge requests
  • !2006

Avoid line breaks for inline math in in WebKit. #1982

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Davide P. Cervone requested to merge github/fork/dpvc/issue1982 into develop 7 years ago
  • Overview 1
  • Commits 7
  • Pipelines 0
  • Changes 3

This PR changes the method of determining the em and ex sizes, and the container width so that display is not set to any block-level values for inline mathematics. This is fine for the em and ex sizes, but the new mechanism has a downside for finding the container width: if the inline math is inside a shrink-wrapped element (like a <td>, or an element with display:inline-block) with no display math, then the container width will be the size of the container without the mathematics, rather than the maximum width available to the shrink-wrapped element, as it is now. Fortunately, in-line math does not use the container width except in unusual situations (e.g., when there is an explicit line break in the math), so it should not affect most uses. For those situations where this is a problem, adding an empty display math should resolve the issue (you could put it in a div with height 0px to avoid the extra space it would introduce).

Resolves issue #1982 (closed).

Compare
  • develop (base)

and
  • latest version
    c4f9f774
    7 commits, 2 years ago

0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
MathJax v2.7.5
MathJax v2.7.5
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
2
2 participants
Administrator
Davide P. Cervone
Reference: mathjax/MathJax!2006
Source branch: github/fork/dpvc/issue1982

Menu

Explore Projects Groups Snippets