doc: fix mmdoc fenced div rendering

This commit is contained in:
Ryan Mulligan
2026-07-14 13:39:40 -07:00
parent d34f2a2400
commit d875aae529
2 changed files with 4 additions and 4 deletions

View File

@@ -165,7 +165,7 @@ They are useful for creating files from Nix expressions, and are all implemented
Each of these functions will cause a derivation to be produced.
When you coerce the result of each of these functions to a string with [string interpolation](https://nixos.org/manual/nix/stable/language/string-interpolation) or [`toString`](https://nixos.org/manual/nix/stable/language/builtins#builtins-toString), it will evaluate to the [store path](https://nixos.org/manual/nix/stable/store/store-path) of this derivation.
:::: {.note}
::: {.note}
Some of these functions will put the resulting files within a directory inside the [derivation output](https://nixos.org/manual/nix/stable/language/derivations#attr-outputs).
If you need to refer to the resulting files somewhere else in a Nix expression, append their path to the derivation's store path.
@@ -190,7 +190,7 @@ writeShellScript "evaluate-my-file.sh" ''
cat ${my-file}/share/my-file
''
```
::::
:::
### `makeDesktopItem` {#trivial-builder-makeDesktopItem}

View File

@@ -1140,7 +1140,7 @@ rec {
For a function that gives you control over what counts as a leaf, see `mapAttrsRecursiveCond`.
:::{#map-attrs-recursive-example .example}
::: {.example #map-attrs-recursive-example}
# Map over leaf attributes
```nix
@@ -1165,7 +1165,7 @@ rec {
If the predicate returns false, `mapAttrsRecursiveCond` does not recurse, but instead applies the mapping function.
If the predicate returns true, it does recurse, and does not apply the mapping function.
:::{#map-attrs-recursive-cond-example .example}
::: {.example #map-attrs-recursive-cond-example}
# Map over an leaf attributes defined by a condition
Map derivations to their `name` attribute.