content-view.component.js 946 Bytes
Newer Older
1
'use strict'
2

3
import MathJax from 'mathjax'
4

5 6 7 8 9 10
export default {
  name: 'content-view',
  data() {
    return {}
  },
  mounted() {
11 12 13 14 15 16 17 18 19 20
    MathJax.Hub.Config({
      jax: ['input/TeX', 'input/MathML', 'output/SVG'],
      extensions: ['tex2jax.js', 'mml2jax.js'],
      TeX: {
        extensions: ['AMSmath.js', 'AMSsymbols.js', 'noErrors.js', 'noUndefined.js']
      },
      SVG: {
        scale: 120,
        font: 'STIX-Web'
      },
NGPixel's avatar
NGPixel committed
21 22 23 24 25 26
      tex2jax: {
        preview: 'none'
      },
      showMathMenu: false,
      showProcessingMessages: false,
      messageStyle: 'none'
27
    })
NGPixel's avatar
NGPixel committed
28
    MathJax.Hub.Configured()
29
  }
30
}
31 32 33 34 35 36 37 38

// module.exports = (alerts) => {
//   if ($('#page-type-view').length) {
//     let currentBasePath = ($('#page-type-view').data('entrypath') !== 'home') ? $('#page-type-view').data('entrypath') : ''
//     require('../modals/create.js')(currentBasePath)
//     require('../modals/move.js')(currentBasePath, alerts)
//   }
// }