typelevel / Laika

Site and E-book Generator and Customizable Text Markup Transformer for sbt, Scala and Scala.js
https://typelevel.org/Laika/
Apache License 2.0
414 stars 45 forks source link

AST - merge fragments with the same name instead of silently dropping one of them #606

Closed jenshalm closed 5 months ago

jenshalm commented 5 months ago

When a document contains multiple fragments with the same name, all but one of them will be silently dropped. This has been the case for many years, but has never been reported and is most likely not what users would expect.

This PR concatenates all fragments with the same name into a single AST node. It is also a prerequisite for solving #595 properly right from the start.