diff --git a/ICSharpCode.ILSpyX/MermaidDiagrammer/ClassDiagrammerFactory.cs b/ICSharpCode.ILSpyX/MermaidDiagrammer/ClassDiagrammerFactory.cs index a726883e29..7eedf77f6c 100644 --- a/ICSharpCode.ILSpyX/MermaidDiagrammer/ClassDiagrammerFactory.cs +++ b/ICSharpCode.ILSpyX/MermaidDiagrammer/ClassDiagrammerFactory.cs @@ -47,6 +47,7 @@ public ClassDiagrammerFactory(XmlDocumentationFormatter? xmlDocs) { this.xmlDocs = xmlDocs; + //TODO not sure LanguageVersion.Latest is the wisest choice here; maybe cap this for better mermaid compatibility? decompilerSettings = new DecompilerSettings(Decompiler.CSharp.LanguageVersion.Latest) { AutomaticProperties = true // for IsHidden to return true for backing fields }; diff --git a/ICSharpCode.ILSpyX/MermaidDiagrammer/html/script.js b/ICSharpCode.ILSpyX/MermaidDiagrammer/html/script.js index 824d5d221c..f26c851b32 100644 --- a/ICSharpCode.ILSpyX/MermaidDiagrammer/html/script.js +++ b/ICSharpCode.ILSpyX/MermaidDiagrammer/html/script.js @@ -321,6 +321,8 @@ } }, + /* TODO watch https://github.com/mermaid-js/mermaid/issues/6034 for a solution to render multiple self-references, + which is currently broken. E.g. for LightJson.JsonValue (compare console log) */ // renders HasOne and HasMany relations renderRelations = (typeId, relations, many) => { if (relations) // expecting object; only process if not null or undefined diff --git a/ICSharpCode.ILSpyX/MermaidDiagrammer/html/template.html b/ICSharpCode.ILSpyX/MermaidDiagrammer/html/template.html index b3316dc62a..958e36d82b 100644 --- a/ICSharpCode.ILSpyX/MermaidDiagrammer/html/template.html +++ b/ICSharpCode.ILSpyX/MermaidDiagrammer/html/template.html @@ -173,6 +173,7 @@

Looking for help with something else?

title="For off-line use, download a copy and save it in the diagrammer folder. At the bottom of the index.html you'll find a script with a reference to the mermaid CDN. Replace its 'src' with the file name of your local copy, e.g. 'mermaid.min.js'.">📥 + using ICSharpCode.ILSpyX v{{BuilderVersion}} 📜 💬