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
  • !10324

Closed
Created May 04, 2016 by Administrator@rootOwner
  • Report abuse
Report abuse

Add support for MathJax with AsciiDoc

  • Overview 0
  • Commits 1
  • Changes 11

Created by: jirutka

This pull requests adds optional (disabled by default) support for MathJax for typesetting of math used in AsciiDoc files with possibility to extending for other markups.

MathJax library is quite big, so it’s not integrated into asset pipeline, but instead loaded from CDN only when actually needed. The detection for AsciiDoc is very simple, because Asciidoctor has a built-in macro for STEM (i.e. math) that must be explicitly enabled for the document using attribute stem (i.e. :stem:).

It should work everywhere where AsciiDoc works, I’ve tested it in Readme, Files (including preview when editing a file), Wiki and Snippets. It works with turbolinks well.

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/13690 and #5280.

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