Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • P plugin_dbui
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

Now running Gitlab v15.9.3. More info.

  • w2pext
  • plugin_dbui
  • Issues
  • #34
Closed
Open
Issue created Jan 09, 2020 by LE GAC Renaud@legacOwner

migrate to mathjax 3

  • currently running with mathjax 2.7.0

  • major version is available mathjax 3.0.0 with many improvements

  • require to modify modules/plugin_dbui/dbui.py

      "mathjax", {
              "css": None,
              "debug": "static/plugin_mathjax/es5/tex-chtml.js",
              "lg": None,
              "libmin": "static/plugin_mathjax/es5/tex-chtml.js"}
  • require to modify src/plugin/MathJax.js. Few minor improvements. The core is in:

      onProcessMath: function () {
    
          "use strict";
    
          var me = this,
              dom = Ext.getDom(me.target.getEl());
    
          if ((!me.activated) || (dom === null)) {
              return;
          }
    
          // mask the viewport, MatJax process and unmask
          me.viewport.mask(me.textMask);
          MathJax.typeset([dom]);
          me.viewport.unmask();
      }
  • require to modify views/plugin_dbui/index.html:

      <script>
          window.MathJax = {
            tex: {
              inlineMath: [['$','$']],
              displayMath: [['$$','$$']],
              processEscapes: true
            },
            options: {
              renderActions: {
                addMenu: [],
                checkLoading: []
              },
              ignoreHtmlClass: 'tex2jax_ignore',
              processHtmlClass: 'tex2jax_process'
            }
          };
      </script>
  • in dec 2019, first tentative in the branch 33-python37-matjax3. It was almost working, but latex equation are not translated after an record update...

  • to be worked again may be with an update version of MathJax

  • update git repository of plugin_dbui/static/plugin_mathjax

  • ...

Edited Jan 09, 2020 by LE GAC Renaud
Assignee
Assign to
Time tracking