hexojs / hexojs/hexo-math

公式居中突出显示

Open
#138 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
327
Forks
24
PR merge metrics
No merged PRs in 30d

Description

使用 `{% mathjax %} ... {% endmathjax %}` 包裹的公式是 inline 形式的,如何才能突出显示?

目前我的文本是:
``` MARKDOWN
Solving the integral

{% mathjax %}
\int_{0}^{+\infty}\frac{\sin x}{x}dx,
{% endmathjax %}
```
![image](https://user-images.githubusercontent.com/20857887/102159186-03990380-3ebe-11eb-8932-96a7ef7bad26.png)

想让公式居中显示并编号,请要怎么做?

---
我的配置文件是

``` YAML
math:
engine: 'mathjax' # or 'katex'
mathjax:
src: //cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
options:
conversion:
display: True
tex:
svg:
katex:
css: custom_css_source
js: custom_js_source # not used
config:
# KaTeX config
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.