vscode-hackmd icon indicating copy to clipboard operation
vscode-hackmd copied to clipboard

Consider support for MathJax Configuration

Open manifest opened this issue 5 years ago • 0 comments

The support for MathJax Configuration will allow to use additional Latex packages and define custom macroses.

window.MathJax = {
  loader: {
    load: ['[tex]/tagformat']
  },
  startup: {
    pageReady: () => {
      alert('Running MathJax')l;
      return MathJax.startup.defaultPageReady();
    }
  },
  tex: {
    packages: {'[+]': ['tagformat']},
    tagSide: 'left',
    macros: {
      RR: '{\\bf R}',
      bold: ['{\\bf #1}',1]
    },
    tagformat: {
       tag: (n) => '[' + n + ']'
    }
  }
};

manifest avatar Oct 09 '20 21:10 manifest