Parsing the citation syntax with multiple keys is already supported in the current master
of DocumenterCitations:
julia> using DocumenterCitations: CitationLink
julia> using Markdown
julia> function _link(text::String)
md = Markdown.parse(text)
return md.content[1].content[1]
end
julia> cit = CitationLink(_link("[BrumerShapiro2003, BrifNJP2010, Shapiro2012, KochJPCM2016, SolaAAMOP2018, MorzhinRMS2019, Wilhelm2003.10132, KochEPJQT2022](@cite)"))
CitationLink(
link=Markdown.Link(Any["BrumerShapiro2003, BrifNJP2010, Shapiro2012, KochJPCM2016, SolaAAMOP2018, MorzhinRMS2019, Wilhelm2003.10132, KochEPJQT2022"], "@cite"),
cmd=cite,
style=nothing,
keys=["BrumerShapiro2003", "BrifNJP2010", "Shapiro2012", "KochJPCM2016", "SolaAAMOP2018", "MorzhinRMS2019", "Wilhelm2003.10132", "KochEPJQT2022"],
note=nothing,
capitalize=false,
starred=false,
link_text=nothing
)
However, the feature is currently undocumented, since there is no (or at least no straightforward way) to render it with Documenter 0.27
: right now, the format_citation
function only modifies the link text of the citation link, but it doesn't break out of the structure of the single markdown link.
How collapsed rendering would look with author-year styles is still to be determined. I'd mimic whatever RevTeX does as closely as possible.