mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Properly escape Markdown markups at minetest.string_to_area (#14774)
Co-authored-by: DS <ds.desour@proton.me>
This commit is contained in:
parent
50da26da91
commit
fb6ceb2664
@ -4007,8 +4007,9 @@ Helper functions
|
||||
* X1, Y1, ... Z2 are coordinates
|
||||
* `relative_to`: Optional. If set to a position, each coordinate
|
||||
can use the tilde notation for relative positions
|
||||
* Tilde notation: "~": Relative coordinate
|
||||
"~<number>": Relative coordinate plus <number>
|
||||
* Tilde notation
|
||||
* `"~"`: Relative coordinate
|
||||
* `"~<number>"`: Relative coordinate plus `<number>`
|
||||
* Example: `minetest.string_to_area("(1,2,3) (~5,~-5,~)", {x=10,y=10,z=10})`
|
||||
returns `{x=1,y=2,z=3}, {x=15,y=5,z=10}`
|
||||
* `minetest.formspec_escape(string)`: returns a string
|
||||
|
Loading…
Reference in New Issue
Block a user