mirror of
https://github.com/minetest/minetest_docs.git
synced 2024-08-20 05:54:19 +02:00
config - Fix source highlighting for HTML output
This commit is contained in:
parent
546c3f6151
commit
1951fccbca
@ -37,7 +37,7 @@ Finds the length of the hypotenuse `z` according to the Pythagorean Theorem: ste
|
|||||||
|
|
||||||
As Python has built-in big integer support (and uses 64-bit `float`), it can be used to easily determine for which `x` this implementation becomes imprecise due to float precision limitations:
|
As Python has built-in big integer support (and uses 64-bit `float`), it can be used to easily determine for which `x` this implementation becomes imprecise due to float precision limitations:
|
||||||
|
|
||||||
[source,python3]
|
[source, python]
|
||||||
----
|
----
|
||||||
def factorial(x):
|
def factorial(x):
|
||||||
return x if x == 1 else x * factorial(x-1)
|
return x if x == 1 else x * factorial(x-1)
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
Minetest-Docs and contributors
|
Minetest-Docs and contributors
|
||||||
:experimental: true
|
:experimental: true
|
||||||
:stem:
|
:stem:
|
||||||
|
:source-highlighter: highlightjs
|
||||||
|
|
||||||
:toc:
|
:toc:
|
||||||
:toclevels: 5
|
:toclevels: 5
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user