Skip to content

Commit

Permalink
DocumentFragment scaladoc - mention how duplicate names are dealt with
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshalm committed Apr 11, 2024
1 parent 0c4a110 commit 1ddf618
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/shared/src/main/scala/laika/ast/blocks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ object DocumentFragment extends AbstractFunction3[String, Element, Options, Docu

/** Collects all fragment elements the specified root contains and assembles
* them into a map with the fragment name serving as the key.
* In case the root contains multiple fragments with the same name
* they will be concatenated into a single fragment.
*/
def collect(root: RootElement): Map[String, Element] = {
root
Expand Down

0 comments on commit 1ddf618

Please sign in to comment.