Cấu hình Hugo sử dụng katex và mmark. Không khó lắm, mất khoảng 15 phút là làm được. Sau khi cài đặt xong thì giờ quan tâm tới cách sử dụng thôi 😄
Display Block
Type equation on a single line, with top and bottom spaces. Use double dollar signs as delimiter.
The following
$$\int_{a}^{b} x^2 dx$$
Is an integralThe following
\[\int_{a}^{b} x^2 dx\]
Is an integral
Display Inline
Type the equation as per usual, nothing extra needed. Use double dollar signs as delimiter.
Integrate $$\int x^3 dx$$Integrate \(\int x^3 dx\)
Notice
Để đoạn mã trên hoạt động được, thêm cấu hình vào từng bài post cấu hình sau:
---
katex: true
markup: "mmark"
---
Liên kết tham khảo
Một vài hướng dẫn cấu hình