Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !5280

Closed
Created Oct 06, 2013 by Administrator@rootOwner
  • Report abuse
Report abuse

Add MathJax support in Wiki and Markdown files.

  • Overview 32
  • Commits 5
  • Changes 5

Created by: harbulot

This patch enables MathJax rendering in wiki pages and in .md files.

MathJax needs to be installed separately. The MathJax CDN can be used, for example.

To enable this feature, simply set the MathJax URL (e.g. http://.../MathJax.js?config=TeX-AMS-MML_HTMLorMML) as the mathjax_url option in the extra_config section of config/gitlab.yml.

Note that, unlike other Markdown processors, the GitLab Markdown processor already processes ^, so this symbol has to be escaped if used in a formula: \^.

Here are a couple of examples that can be used in wiki or markdown content:

Here is a mathematical formula:

$$f(x) = \sum\_{i=1}\^{N}{x\^2}$$

Here is an inline formula: \\( f(x) = \sum\_{i=1}\^{N}{x\^2} \\)

The formulae should be turned into mathematical notation after the page is loaded. The first time MathJax is used, this transformation might seem a bit slow, mainly because it needs to download a number of fonts. This improves once MathJax is cached.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/harbulot/mathjax