Ask HN: Self hosted blogging software with math typesetting?

I'm looking to start a self-hosted blog that might have some math and code fragments in it. I've reviewed the usual suspects such as ghost and the rest of the awesome-selfhosted list on github, but math typesetting (for example in latex format) hasn't been prominently mentioned as a feature in any of them. Am I getting worked up over nothing because everybody knows you can do that with markdown or some kind of plugin for ghost? Rolling my own with mathjax or whatever wouldn't be out of the question. What would you recommend?

3 points | by gradschool 1 day ago

2 comments

  • ColinWright 1 day ago
    You probably know this, but just in case ...

    It's possible to use MathJax on HTML pages like this:

    Inside the HEAD tag:

      <HEAD>
        <TITLE>Whatever your title might be</TITLE>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <script type="text/x-mathjax-config">
          MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$']]}});
          </script>
        <script type="text/javascript" async
          src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_SVG">
          </script>
          </HEAD>
    
    Then inside the body you can put things like this:

      Find a value $v$ such that
      $$\lim_{x\rightarrow 0}\frac{1}{x}(v^x-1) = 1$$.
    
    So if you can use plugins to insert this sort of thing, you're done.
  • evanjrowley 19 hours ago
    HedgeDoc might be an option for you. It's not quite a blog, but instead, a platform for writing and publishing markdown pages on the internet. MathJax is supported: https://demo.hedgedoc.org/features#MathJax