diff --git a/doc/client_lua_api.md b/doc/client_lua_api.md index 11ac80a5a..4dc1d668e 100644 --- a/doc/client_lua_api.md +++ b/doc/client_lua_api.md @@ -115,8 +115,8 @@ registered callbacks. > [!NOTE] > Client mods currently can't provide textures, sounds, or models by - themselves. Any media referenced in function calls must already be loaded - (provided by mods that exist on the server). +> themselves. Any media referenced in function calls must already be loaded +> (provided by mods that exist on the server). @@ -340,8 +340,8 @@ Call these functions only at load time! * Called before client shutdown > [!WARNING] > If the client terminates abnormally (i.e. crashes), the registered - callbacks **will likely not be run**. Data should be saved at - semi-frequent intervals as well as on server shutdown. +> callbacks **will likely not be run**. Data should be saved at +> semi-frequent intervals as well as on server shutdown. * `minetest.register_on_receiving_chat_message(function(message))` * Called always when a client receive a message * Return `true` to mark the message as handled, which means that it will not be shown to chat diff --git a/doc/lua_api.md b/doc/lua_api.md index 2ffc05ddd..81aee5af2 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -774,10 +774,10 @@ expensive to compose with `[combine:`. > [!WARNING] > Avoid sending large images this way. This is not a replacement -for asset files. Do not use it to do anything that you could instead achieve -by just using a file. In particular consider `minetest.dynamic_add_media` and -test whether using other texture modifiers could result in a shorter string -than embedding a whole image, this may vary by use case. +> for asset files. Do not use it to do anything that you could instead achieve +> by just using a file. In particular consider `minetest.dynamic_add_media` and +> test whether using other texture modifiers could result in a shorter string +> than embedding a whole image, this may vary by use case. ## Hardware Coloring @@ -2581,13 +2581,13 @@ background elements are drawn before all other elements. > [!WARNING] > Do _not_ use an element name starting with `key_`; those names are - reserved to pass key press events to formspec! +> reserved to pass key press events to formspec! > [!WARNING] > Minetest allows you to add elements to every single formspec instance - using `player:set_formspec_prepend`, which may be the reason backgrounds are - appearing when you don't expect them to, or why things are styled differently - to normal. See [`no_prepend[]`] and [Styling Formspecs]. +> using `player:set_formspec_prepend`, which may be the reason backgrounds are +> appearing when you don't expect them to, or why things are styled differently +> to normal. See [`no_prepend[]`] and [Styling Formspecs]. ## Examples @@ -2753,8 +2753,8 @@ background elements are drawn before all other elements. `starting item index`. > [!NOTE] > With the new coordinate system, the spacing between inventory slots is 1/4 the - size of an inventory slot by default. Also see [Styling Formspecs] for changing the - size of slots and spacing. +> size of an inventory slot by default. Also see [Styling Formspecs] for changing the +> size of slots and spacing. ### `listring[;]` @@ -2949,13 +2949,13 @@ background elements are drawn before all other elements. at the specified position. > [!NOTE] > If the new coordinate system is enabled, labels are positioned - from the center of the text, not the top. +> from the center of the text, not the top. * The text is displayed directly without automatic line breaking, so label should not be used for big text chunks. Newlines can be used to make labels multiline. > [!NOTE] > With the new coordinate system, newlines are spaced with half a - coordinate. With the old system, newlines are spaced 2/5 of an inventory slot. +> coordinate. With the old system, newlines are spaced 2/5 of an inventory slot. ### `hypertext[,;,;;]` @@ -2972,7 +2972,7 @@ background elements are drawn before all other elements. * `label` is the text on the label > [!NOTE] > If the new coordinate system is enabled, vertlabels are positioned - from the center of the text, not the left. +> from the center of the text, not the left. ### `button[,;,;;