GeneralUtilities's definition printing functions are very useful, I find them much better than Save and friends because they format the code properly. However,
PrintNonhyperlinkedDefinitions has two issues:
code generated still contains hyperlinks
dependencies aren't printed
h[x_] := x g[x_] := h[x] f[x_] := g[x] GeneralUtilities`PrintNonhyperlinkedDefinitions[f]
In the above,
f is really a hyperlink and
g's definitions are missing. Is there any way to resolve this?