Skip to main content

Definition

Assembly: CloudNimble.DotNetDocs.Core.dll Namespace: CloudNimble.DotNetDocs.Core.Renderers Inheritance: CloudNimble.DotNetDocs.Core.Renderers.RendererBase

Syntax

CloudNimble.DotNetDocs.Core.Renderers.MarkdownRendererBase

Summary

Base class for Markdown-based renderers providing common formatting utilities.

Constructors

.ctor

Initializes a new instance of the MarkdownRendererBase class.

Syntax

public MarkdownRendererBase(CloudNimble.DotNetDocs.Core.ProjectContext context = null)

Parameters

NameTypeDescription
contextCloudNimble.DotNetDocs.Core.ProjectContext?The project context. If null, a default context is created.

.ctor Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Initializes a new instance of the RendererBase class.

Syntax

protected RendererBase(CloudNimble.DotNetDocs.Core.ProjectContext context = null, bool enabled = true)

Parameters

NameTypeDescription
contextCloudNimble.DotNetDocs.Core.ProjectContext?The project context. If null, a default context is created.
enabledbool-

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Context Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the project context for this renderer.

Syntax

protected CloudNimble.DotNetDocs.Core.ProjectContext Context { get; }

Property Value

Type: CloudNimble.DotNetDocs.Core.ProjectContext The project context containing configuration and settings.

Enabled Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
When more than one Renderer is registered, allows a renderer to be turned off.

Syntax

public bool Enabled { get; set; }

Property Value

Type: bool

FileNamingOptions Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the file naming options for this renderer.

Syntax

protected CloudNimble.DotNetDocs.Core.Configuration.FileNamingOptions FileNamingOptions { get; }

Property Value

Type: CloudNimble.DotNetDocs.Core.Configuration.FileNamingOptions The file naming configuration.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

EscapeXmlTagsInString Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Escapes XML/HTML tag syntax for safe rendering in Markdown/MDX.

Syntax

protected static string EscapeXmlTagsInString(string stringToEscape)

Parameters

NameTypeDescription
stringToEscapestring?The string potentially containing XML/HTML tag syntax or generic type brackets.

Returns

Type: string The escaped string safe for MDX rendering.

Remarks

Converts angle brackets to HTML entities to prevent MDX parser interpretation as JSX/HTML tags. This handles both generic type syntax (e.g., JsonConverter<object>) and XML documentation tags (e.g., <see cref=”…”>) by converting them to JsonConverter&lt;object&gt; and &lt;see cref=”…”&gt; respectively.

GetAccessModifier Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the access modifier string for the given accessibility.

Syntax

protected string GetAccessModifier(Microsoft.CodeAnalysis.Accessibility accessibility)

Parameters

NameTypeDescription
accessibilityMicrosoft.CodeAnalysis.AccessibilityThe accessibility to convert.

Returns

Type: string The access modifier string.

GetEventSignature Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the event signature string.

Syntax

protected string GetEventSignature(Microsoft.CodeAnalysis.IEventSymbol evt)

Parameters

NameTypeDescription
evtMicrosoft.CodeAnalysis.IEventSymbolThe event symbol.

Returns

Type: string The event signature.

GetFieldSignature Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the field signature string.

Syntax

protected string GetFieldSignature(Microsoft.CodeAnalysis.IFieldSymbol field)

Parameters

NameTypeDescription
fieldMicrosoft.CodeAnalysis.IFieldSymbolThe field symbol.

Returns

Type: string The field signature.

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetMemberSignature Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the member signature for a member symbol.

Syntax

protected string GetMemberSignature(CloudNimble.DotNetDocs.Core.DocMember member)

Parameters

NameTypeDescription
memberCloudNimble.DotNetDocs.Core.DocMemberThe member to get the signature for.

Returns

Type: string The member signature string.

GetMethodSignature Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the method signature string.

Syntax

protected string GetMethodSignature(Microsoft.CodeAnalysis.IMethodSymbol method)

Parameters

NameTypeDescription
methodMicrosoft.CodeAnalysis.IMethodSymbolThe method symbol.

Returns

Type: string The method signature.

GetNamespaceFileName Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets a safe file name for a namespace, suitable for use in file systems.

Syntax

public string GetNamespaceFileName(CloudNimble.DotNetDocs.Core.DocNamespace ns, string extension)

Parameters

NameTypeDescription
nsCloudNimble.DotNetDocs.Core.DocNamespaceThe namespace to get the file name for.
extensionstringThe file extension (without the dot).

Returns

Type: string A safe file name for the namespace.

Remarks

This method is deprecated. Use GetNamespaceFilePath instead.

GetNamespaceFilePath Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the file path for a namespace documentation file.

Syntax

protected string GetNamespaceFilePath(CloudNimble.DotNetDocs.Core.DocNamespace ns, string outputPath, string extension)

Parameters

NameTypeDescription
nsCloudNimble.DotNetDocs.Core.DocNamespaceThe namespace to get the file path for.
outputPathstringThe base output path.
extensionstringThe file extension (without the dot).

Returns

Type: string The full file path for the namespace documentation.

GetPropertySignature Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the property signature string.

Syntax

protected string GetPropertySignature(Microsoft.CodeAnalysis.IPropertySymbol property)

Parameters

NameTypeDescription
propertyMicrosoft.CodeAnalysis.IPropertySymbolThe property symbol.

Returns

Type: string The property signature.

GetSafeNamespaceName Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets a safe namespace name for use in file names and display.

Syntax

public string GetSafeNamespaceName(CloudNimble.DotNetDocs.Core.DocNamespace ns)

Parameters

NameTypeDescription
nsCloudNimble.DotNetDocs.Core.DocNamespaceThe namespace to get the name for.

Returns

Type: string A safe namespace name, using “global” for the global namespace.

GetSafeTypeName Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets a safe type name for use in file names, removing invalid characters.

Syntax

protected string GetSafeTypeName(CloudNimble.DotNetDocs.Core.DocType type)

Parameters

NameTypeDescription
typeCloudNimble.DotNetDocs.Core.DocTypeThe type to get the name for.

Returns

Type: string A safe type name with invalid characters replaced.

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

GetTypeFileName Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets a safe file name for a type, suitable for use in file systems.

Syntax

public string GetTypeFileName(CloudNimble.DotNetDocs.Core.DocType type, CloudNimble.DotNetDocs.Core.DocNamespace ns, string extension)

Parameters

NameTypeDescription
typeCloudNimble.DotNetDocs.Core.DocTypeThe type to get the file name for.
nsCloudNimble.DotNetDocs.Core.DocNamespaceThe namespace containing the type.
extensionstringThe file extension (without the dot).

Returns

Type: string A safe file name for the type.

Remarks

This method is deprecated. Use GetTypeFilePath instead.

GetTypeFilePath Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the file path for a type documentation file.

Syntax

protected string GetTypeFilePath(CloudNimble.DotNetDocs.Core.DocType type, CloudNimble.DotNetDocs.Core.DocNamespace ns, string outputPath, string extension)

Parameters

NameTypeDescription
typeCloudNimble.DotNetDocs.Core.DocTypeThe type to get the file path for.
nsCloudNimble.DotNetDocs.Core.DocNamespaceThe namespace containing the type.
outputPathstringThe base output path.
extensionstringThe file extension (without the dot).

Returns

Type: string The full file path for the type documentation.

GetTypeSignature Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Gets the type signature string.

Syntax

protected string GetTypeSignature(CloudNimble.DotNetDocs.Core.DocType type)

Parameters

NameTypeDescription
typeCloudNimble.DotNetDocs.Core.DocTypeThe type to get the signature for.

Returns

Type: string The type signature.

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

RemoveIndentation Inherited

Inherited from CloudNimble.DotNetDocs.Core.Renderers.RendererBase
Removes common leading indentation from multi-line text content.

Syntax

internal static string RemoveIndentation(string text)

Parameters

NameTypeDescription
textstringThe text to remove indentation from.

Returns

Type: string The text with common indentation removed.

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?