diff --git a/documentation/NEXT_RELEASENOTES.txt b/documentation/NEXT_RELEASENOTES.txt index e69de29b..536dc96f 100644 --- a/documentation/NEXT_RELEASENOTES.txt +++ b/documentation/NEXT_RELEASENOTES.txt @@ -0,0 +1,3 @@ +## Bug fixes + +- fixed cmd usage with default markdown plugin loading (#109 thanks to @aremes) \ No newline at end of file diff --git a/source/DefaultDocumentation.Common/Generator.cs b/source/DefaultDocumentation.Common/Generator.cs index 78431285..b0543ff9 100644 --- a/source/DefaultDocumentation.Common/Generator.cs +++ b/source/DefaultDocumentation.Common/Generator.cs @@ -116,15 +116,11 @@ void AddSetting(Expression> prop _context = new GeneralContext( _configuration, new[] { typeof(Markdown.Writers.MarkdownWriter).Assembly } - .Concat( - (GetSetting(nameof(settings.Plugins)) ?? Enumerable.Empty()) - .Select(Assembly.LoadFrom) - ) + .Concat((GetSetting(nameof(settings.Plugins)) ?? Enumerable.Empty()).Select(Assembly.LoadFrom)) .SelectMany(a => a.GetTypes()) .ToArray(), resolvedSettings, DocItemReader.GetItems(resolvedSettings)); - } private void WritePage(DocItem item, StringBuilder builder)