The natural instinct for "parse a document, cross-reference citations, render annotated HTML" is to reach for a handful of packages. Here's what each of those would have been, and the stdlib module ...
Arrays of six or more dimensions are markedly less common and are adequately served by the general-purpose @stdlib/ndarray/ctor and @stdlib/ndarray/array APIs. Supported options (readonly, mode, ...