anchor.diff:        enable = mkOption {
           type = types.bool;
           default = false;
  -        description = ''
  +        description = lib.mdDoc ''
             Whether to enable thinkfan, a fan control program.
   
  -          <note><para>
  -            This module targets IBM/Lenovo thinkpads by default, for
  -            other hardware you will have configure it more carefully.
  -          </para></note>
  +          ::: {.note}
  +          This module targets IBM/Lenovo thinkpads by default, for
  +          other hardware you will have configure it more carefully.
  +          :::
           '';
           relatedPackages = [ "thinkfan" ];
         };
  
positive.code:     // { "${type}" = query; };
  
    syntaxNote = name: ''
      <note><para>
        This section slightly departs from the thinkfan.conf syntax.
        The type and path must be specified like this:
        <literal>
          type = "tpacpi";
          query = "/proc/acpi/ibm/${name}";
        </literal>
        instead of a single declaration like:
        <literal>
          - tpacpi: /proc/acpi/ibm/${name}
        </literal>
      </para></note>
    '';
  
  in {
  
negative.code:       };
        query = mkOption {
          type = types.str;
          description = lib.mdDoc ''
            The query string used to match one or more ${name}s: can be
            a fullpath to the temperature file (single ${name}) or a fullpath
            to a driver directory (multiple ${name}s).
  
            ::: {.note}
            When multiple ${name}s match, the query can be restricted using the
            {option}`name` or {option}`indices` options.
            :::
          '';
        };
        indices = mkOption {
          type = with types; nullOr (listOf ints.unsigned);
          default = null;
          description = lib.mdDoc ''
            A list of ${name}s to pick in case multiple ${name}s match the query.
  
            ::: {.note}
            Indices start from 0.
            :::
          '';
        };
      } // optionalAttrs (name == "sensor") {
  