adamzap / landslide

Generate HTML5 slideshows from markdown, ReST, or textile
Apache License 2.0
2.08k stars 370 forks source link

Mathjax improves and TOC issues. #220

Open illava opened 4 years ago

illava commented 4 years ago

Count not set uses MathJax rendering in config file

I tried math_output = True and math-output = True in cfg file.

More math type options.

in themes\default\base.html:70 may change into

tex2jax: {inlineMath: [['$','$'],['\\(','\\)']], displayMath: [['$$', '$$'], ['\\[','\\]']]}

[TOC] isn't jump correct

toc.md

# TOC Jump Issue

Table of content isn't jumping correctly.

---

## TOC
[TOC]

---

## A

A blabla.

---

### A1

A1 blabla...

---

### A2

A2 blabla...

---

## B

B blabla...

---

### B1

b1 blabla...

---

### B2

b2 blabla...

toc.cfg

[landslide]
source = toc.md
relative = True
extensions = toc

The generated html is not jumping correctly by clicking toc. Is it the correct way to gen it?

env: landslide 1.1.6 Python 3.7.3

The extension is brilliant btw. I loved it.

p.s. I didn't get \ref{} in mathjax working. If someone worked it out. Let me know, thx.

illava commented 4 years ago

Also, change css into img { display: block; margin: auto; max-width: 100%; } to auto fit into ppt slide for large image.