You are here

function mathjax_help in MathJax: LaTeX for Drupal 8.2

Same name and namespace in other branches
  1. 6 mathjax.module \mathjax_help()
  2. 7.2 mathjax.module \mathjax_help()
  3. 7 mathjax.module \mathjax_help()
  4. 3.0.x mathjax.module \mathjax_help()

Implements hook_help().

File

./mathjax.module, line 13
MathJax module.

Code

function mathjax_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'mathjax.settings':
      return t('MathJax allows you to include mathematics in your web pages, either using TeX and LaTeX notation, or as MathML, and you can even use both in the same document. Go to the <a href=":url">MathJax website</a> for more information.', [
        ':url' => 'http://www.mathjax.org/',
      ]);
    case 'help.page.mathjax':
      return '<p>' . t('MathJax allows you to include mathematics in your web pages, either using TeX and LaTeX notation, or as MathML, and you can even use both in the same document. Go to the <a href=":url">MathJax website</a> for more information.', [
        ':url' => 'http://www.mathjax.org/',
      ]) . '</p>';
  }
}