Skip to content

Add support for MathJax with AsciiDoc

username-removed-522587 requested to merge jirutka/gitlab-ce:mathjax into master

What does this MR do?

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.

Are there points in the code the reviewer needs to double check?

I don’t think so.

Why was this MR needed?

Because I there’s still no reaction from GitLab devs on my pull request for this feature that I’ve sent 23 days ago on GitHub.

What are the relevant issue numbers?

#13690 (closed)

Screenshots (if relevant)

/cc @mojavelinux

Merge request reports