@@ -52,19 +52,19 @@ generated for the path to each library dependency and appended to the
5252If multiple libraries contain a file that matches the ` #include `  directive, the priority is determined by applying the
5353following rules, one by one in this order, until a rule determines a winner:
5454
55- 1 .  A library that has been specified using the [ ` --library `  option] ( commands/arduino-cli_compile.md#options )  of
56-    ` arduino-cli compile `  wins against a library in other locations
55+ 1 .  A library has been specified using the [ ` --library `  option] ( commands/arduino-cli_compile.md#options )  of
56+    ` arduino-cli compile ` .
57+ 1 .  A library is found in the ` libraries `  subfolder of the sketch.
57581 .  A library that is architecture compatible wins against a library that is not architecture compatible (see
5859   [ ** Architecture Matching** ] ( #architecture-matching ) )
59601 .  A library with both [ library name] ( #library-name-priority )  and [ folder name] ( #folder-name-priority )  matching the
60-    include wins
61- 1 .  A library that has better "library name priority" or "folder name priority" wins (see
62-    [ ** Library Name Priority** ] ( #library-name-priority )  and [ ** Folder Name Priority** ] ( #folder-name-priority ) )
63- 1 .  A library that is architecture optimized wins against a library that is not architecture optimized (see
64-    [ ** Architecture Matching** ] ( #architecture-matching ) )
65- 1 .  A library that has a better "location priority" wins (see [ ** Location Priority** ] ( #location-priority ) )
66- 1 .  A library that has a folder name with a better score using the "closest-match" algorithm wins
67- 1 .  A library that has a folder name that comes first in alphanumeric order wins
61+    include.
62+ 1 .  A library has better "library name priority" or "folder name priority" (see
63+    [ ** Library Name Priority** ] ( #library-name-priority )  and [ ** Folder Name Priority** ] ( #folder-name-priority ) ).
64+ 1 .  A library is architecture optimized (see [ ** Architecture Matching** ] ( #architecture-matching ) ).
65+ 1 .  A library has a better "location priority" (see [ ** Location Priority** ] ( #location-priority ) ).
66+ 1 .  A library has a folder name with a better score using the "closest-match" algorithm.
67+ 1 .  A library has a folder name that comes first in alphanumeric order.
6868
6969### Architecture Matching  
7070
@@ -126,14 +126,15 @@ The "location priority" is determined as follows (in order of highest to lowest
126126
1271271 .  The library is under a custom libraries path specified via the
128128   [ ` --libraries `  option] ( commands/arduino-cli_compile.md#options )  of ` arduino-cli compile `  (in decreasing order of
129-    priority when multiple custom paths are defined)
130- 1 .  The library is under the ` libraries `  subfolder of the IDE's sketchbook or Arduino CLI's user directory
129+    priority when multiple custom paths are defined).
130+ 1 .  The library is under the ` libraries `  subfolder of the sketch.
131+ 1 .  The library is under the ` libraries `  subfolder of the IDE's sketchbook or Arduino CLI's user directory.
1311321 .  The library is bundled with the board platform/core
132-    ([ ` {runtime.platform.path}/libraries ` ] ( platform-specification.md#global-predefined-properties ) )
133+    ([ ` {runtime.platform.path}/libraries ` ] ( platform-specification.md#global-predefined-properties ) ). 
1331341 .  The library is bundled with the [ referenced] ( platform-specification.md#referencing-another-core-variant-or-tool ) 
134-    board platform/core
135+    board platform/core. 
1351361 .  The library is bundled with the Arduino IDE (this location is determined by the Arduino CLI configuration setting
136-    ` directories.builtin.libraries ` )
137+    ` directories.builtin.libraries ` ). 
137138
138139#### Location priorities in Arduino Web Editor  
139140
0 commit comments