Fix admonition formatting

This commit is contained in:
Bituvo 2024-04-27 09:43:30 -04:00
parent a95588056f
commit 31e109d4e0
2 changed files with 23 additions and 23 deletions

View File

@ -115,8 +115,8 @@ registered callbacks.
> [!NOTE] > [!NOTE]
> Client mods currently can't provide textures, sounds, or models by > Client mods currently can't provide textures, sounds, or models by
themselves. Any media referenced in function calls must already be loaded > themselves. Any media referenced in function calls must already be loaded
(provided by mods that exist on the server). > (provided by mods that exist on the server).
@ -340,8 +340,8 @@ Call these functions only at load time!
* Called before client shutdown * Called before client shutdown
> [!WARNING] > [!WARNING]
> If the client terminates abnormally (i.e. crashes), the registered > If the client terminates abnormally (i.e. crashes), the registered
callbacks **will likely not be run**. Data should be saved at > callbacks **will likely not be run**. Data should be saved at
semi-frequent intervals as well as on server shutdown. > semi-frequent intervals as well as on server shutdown.
* `minetest.register_on_receiving_chat_message(function(message))` * `minetest.register_on_receiving_chat_message(function(message))`
* Called always when a client receive a 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 * Return `true` to mark the message as handled, which means that it will not be shown to chat

View File

@ -774,10 +774,10 @@ expensive to compose with `[combine:`.
> [!WARNING] > [!WARNING]
> Avoid sending large images this way. This is not a replacement > 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 > 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 > 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 > test whether using other texture modifiers could result in a shorter string
than embedding a whole image, this may vary by use case. > than embedding a whole image, this may vary by use case.
## Hardware Coloring ## Hardware Coloring
@ -2581,13 +2581,13 @@ background elements are drawn before all other elements.
> [!WARNING] > [!WARNING]
> Do _not_ use an element name starting with `key_`; those names are > 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] > [!WARNING]
> Minetest allows you to add elements to every single formspec instance > Minetest allows you to add elements to every single formspec instance
using `player:set_formspec_prepend`, which may be the reason backgrounds are > 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 > appearing when you don't expect them to, or why things are styled differently
to normal. See [`no_prepend[]`] and [Styling Formspecs]. > to normal. See [`no_prepend[]`] and [Styling Formspecs].
## Examples ## Examples
@ -2753,8 +2753,8 @@ background elements are drawn before all other elements.
`starting item index`. `starting item index`.
> [!NOTE] > [!NOTE]
> With the new coordinate system, the spacing between inventory slots is 1/4 the > 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 an inventory slot by default. Also see [Styling Formspecs] for changing the
size of slots and spacing. > size of slots and spacing.
### `listring[<inventory location>;<list name>]` ### `listring[<inventory location>;<list name>]`
@ -2949,13 +2949,13 @@ background elements are drawn before all other elements.
at the specified position. at the specified position.
> [!NOTE] > [!NOTE]
> If the new coordinate system is enabled, labels are positioned > 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, * The text is displayed directly without automatic line breaking,
so label should not be used for big text chunks. Newlines can be so label should not be used for big text chunks. Newlines can be
used to make labels multiline. used to make labels multiline.
> [!NOTE] > [!NOTE]
> With the new coordinate system, newlines are spaced with half a > 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[<X>,<Y>;<W>,<H>;<name>;<text>]` ### `hypertext[<X>,<Y>;<W>,<H>;<name>;<text>]`
@ -2972,7 +2972,7 @@ background elements are drawn before all other elements.
* `label` is the text on the label * `label` is the text on the label
> [!NOTE] > [!NOTE]
> If the new coordinate system is enabled, vertlabels are positioned > 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[<X>,<Y>;<W>,<H>;<name>;<label>]` ### `button[<X>,<Y>;<W>,<H>;<name>;<label>]`
@ -3137,7 +3137,7 @@ background elements are drawn before all other elements.
* `selected` (optional): `true`/`false` * `selected` (optional): `true`/`false`
> [!NOTE] > [!NOTE]
> If the new coordinate system is enabled, checkboxes are positioned from > If the new coordinate system is enabled, checkboxes are positioned from
the center of the checkbox, not the top. > the center of the checkbox, not the top.
### `scrollbar[<X>,<Y>;<W>,<H>;<orientation>;<name>;<value>]` ### `scrollbar[<X>,<Y>;<W>,<H>;<orientation>;<name>;<value>]`
@ -4428,7 +4428,7 @@ noise_threshold = 1.6
> [!WARNING] > [!WARNING]
> Use this ore type *very* sparingly since it is ~200x more computationally > Use this ore type *very* sparingly since it is ~200x more computationally
expensive than any other ore. > expensive than any other ore.
### `stratum` ### `stratum`
@ -7510,9 +7510,9 @@ and [`PlayerMetaRef`].
> [!NOTE] > [!NOTE]
> If a metadata value is in the format `${k}`, an attempt to get the value > If a metadata value is in the format `${k}`, an attempt to get the value
will return the value associated with key `k`. There is a low recursion limit. This > will return the value associated with key `k`. There is a low recursion limit. This
behavior is **deprecated** and will be removed in a future version. Usage of the > behavior is **deprecated** and will be removed in a future version. Usage of the
`${k}` syntax in formspecs is not deprecated. > `${k}` syntax in formspecs is not deprecated.
### Methods ### Methods
@ -7674,7 +7674,7 @@ To change position or rotation call `set_attach` again with the new values.
> [!NOTE] > [!NOTE]
> Just like model dimensions, the relative position in `set_attach` must > Just like model dimensions, the relative position in `set_attach` must
be multiplied by 10 compared to world positions. > be multiplied by 10 compared to world positions.
It is also possible to attach to a bone of the parent object. In that case the It is also possible to attach to a bone of the parent object. In that case the
child will follow movement and rotation of that bone. child will follow movement and rotation of that bone.