Sunday, 4 August 2024

Docker Сheatsheet

1. Get inside a container: docker exec -it <mattermost_container_name> /bin/bash

2. <comes later>

Thursday, 1 August 2024

XWiki render MathJax without extensions

Go to https://WIKI.YOURSITE.COM/bin/admin/XWiki/XWikiPreferences?editor=globaladmin&section=Presentation and add the following to "HTTP META INFO" header at the beginning:

<script type="text/javascript">
  MathJax = {
    tex: {
      inlineMath: [['$', '$'], ['\\(', '\\)']],
      displayMath: [['$$', '$$'], ['\\[', '\\]']]
    },
    options: {
      skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre']
    },
    startup: {
      ready: function() {
        MathJax.startup.defaultReady();
        MathJax.typesetPromise();
      }
    }
  };
</script>
<script async="" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" type="text/javascript">
</script>