gettalong / kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
http://kramdown.gettalong.org
Other
1.72k stars 271 forks source link

Numbered list - custum start #768

Closed yagarea closed 2 years ago

yagarea commented 2 years ago

I have article containing this:

Předpoklady:

1. Dokazovaná formule $$\varphi$$ je sentence. Není-li $$\varphi$$ sentence, můžeme ji nahradit za její generální uzávěr $$\varphi^{\prime}$$, nebot pro každou teorii $$T$$ platí

$$
T \models \varphi \Leftrightarrow T \models \varphi^{\prime} .
$$

2. Dokazujeme z teorie v uzavřeném tvaru, tj. každý axiom je sentence. Nahrazením každého axiomu $$\psi$$ za jeho generální uzávér $$\psi^{\prime}$$ zíkáme ekvivalentní teorii, nebot pro každou strukturu $$\mathcal{A}$$ (daného jazyka $$L$$ ),

$$
\mathcal{A} \models \psi \Leftrightarrow \mathcal{A} \models \psi^{\prime} .
$$

3. Jazyk $$L$$ je spočetný. Pak každá teorie nad $$L$$ je spočetná. Označme $$L_{C}$$ rozšíření jazyka $$L$$ o nové konstantní symboly $$c_{0}, c_{1}, \ldots$$ (početně nekonečně mnoho). Platí, že konstantních termů jazyka $$L_{C}$$ je spočetně. Nechť' $$t_{i}$$ označuje $$i$$-tý konstantní term (v pevně zvoleném očíslování).

It is numbered list containing latex expressions in display mode. The thing is that it rendrers as three separate lists all starting at 1.

How can I make it start at proper number ?

gettalong commented 2 years ago

Everything that is at least as indent as the list item becomes part of the list item, have a look at the syntax documentation for details: https://kramdown.gettalong.org/syntax.html#lists

What you wanna do in your case is indenting the LaTeX equations with three spaces since the first word after the item marker starts at the fourth column.