TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Self hosted blogging software with math typesetting?

3 点作者 gradschool3 个月前
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?

2 条评论

ColinWright3 个月前
You probably know this, but just in case ...<p>It&#x27;s possible to use MathJax on HTML pages like this:<p>Inside the HEAD tag:<p><pre><code> &lt;HEAD&gt; &lt;TITLE&gt;Whatever your title might be&lt;&#x2F;TITLE&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text&#x2F;html; charset=ISO-8859-1&quot;&gt; &lt;script type=&quot;text&#x2F;x-mathjax-config&quot;&gt; MathJax.Hub.Config({tex2jax: {inlineMath: [[&#x27;$&#x27;,&#x27;$&#x27;]]}}); &lt;&#x2F;script&gt; &lt;script type=&quot;text&#x2F;javascript&quot; async src=&quot;https:&#x2F;&#x2F;cdnjs.cloudflare.com&#x2F;ajax&#x2F;libs&#x2F;mathjax&#x2F;2.7.5&#x2F;MathJax.js?config=TeX-AMS_SVG&quot;&gt; &lt;&#x2F;script&gt; &lt;&#x2F;HEAD&gt; </code></pre> Then inside the body you can put things like this:<p><pre><code> Find a value $v$ such that $$\lim_{x\rightarrow 0}\frac{1}{x}(v^x-1) = 1$$. </code></pre> So if you can use plugins to insert this sort of thing, you&#x27;re done.
evanjrowley3 个月前
HedgeDoc might be an option for you. It&#x27;s not quite a blog, but instead, a platform for writing and publishing markdown pages on the internet. MathJax is supported: <a href="https:&#x2F;&#x2F;demo.hedgedoc.org&#x2F;features#MathJax" rel="nofollow">https:&#x2F;&#x2F;demo.hedgedoc.org&#x2F;features#MathJax</a>