From 1ddf6187359cadcfd067dda4c942815a4f2d1a20 Mon Sep 17 00:00:00 2001 From: Jens Halm <3116929+jenshalm@users.noreply.github.com> Date: Thu, 11 Apr 2024 09:34:13 +0100 Subject: [PATCH] DocumentFragment scaladoc - mention how duplicate names are dealt with --- core/shared/src/main/scala/laika/ast/blocks.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/shared/src/main/scala/laika/ast/blocks.scala b/core/shared/src/main/scala/laika/ast/blocks.scala index 8b1093286..5775985f2 100644 --- a/core/shared/src/main/scala/laika/ast/blocks.scala +++ b/core/shared/src/main/scala/laika/ast/blocks.scala @@ -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