public static FootnoteLeaf Footnote(Paragraph content, string?name = null) { name ??= "0"; var footnote = new FootnoteLeaf(name, content); content.Parent = footnote; return(footnote); }
public static FootnoteLeaf Footnote(CompilerState state, Paragraph content, string?name = null) { name ??= LabelVariables.FootnoteCounter.Increment(state.Document).ToString(); var footnote = new FootnoteLeaf(name, content); content.Parent = footnote; content.Classes.Add("footnote"); return(footnote); }