public virtual void WriteArgument(CommandArgument argument)
        {
            _writer.WriteStartBold();
            _writer.WriteInlineCode((!string.IsNullOrEmpty(argument.Name)) ? argument.Name : $"<{argument.Index}>");
            _writer.WriteEndBold();
            _writer.WriteLine();
            _writer.WriteLine();

            if (!string.IsNullOrEmpty(argument.Description))
            {
                _writer.WriteString(argument.Description);
                _writer.WriteLine();
                _writer.WriteLine();
            }
        }
Example #2
0
        protected override void WriteDefinitionName(ISymbol symbol, SymbolDisplayFormat format = null)
        {
            DocumentationUrlInfo urlInfo = _urlProvider.GetExternalUrl(symbol);

            if (urlInfo.Url != null)
            {
                WriteContainingNamespaceInTypeHierarchy(symbol);

                _writer.WriteStartBold();
                _writer.WriteLink(symbol.ToDisplayString(format ?? GetDefinitionNameFormat(symbol)), urlInfo.Url);
                _writer.WriteEndBold();
            }
            else
            {
                _writer.WriteStartBold();
                base.WriteDefinitionName(symbol, format);
                _writer.WriteEndBold();
            }
        }
Example #3
0
 public override void WriteEndBold() => _writer.WriteEndBold();
Example #4
0
 public override void WriteTo(MarkdownWriter writer)
 {
     writer.WriteStartBold();
     WriteContentTo(writer);
     writer.WriteEndBold();
 }