AdfToMarkdownOptions Class

Options that control how an ADF document is converted to Markdown.

public sealed class AdfToMarkdownOptions

Constructors

NameDescription
AdfToMarkdownOptions()

AdfToMarkdownOptions()

AdfToMarkdownOptions.cs
public AdfToMarkdownOptions()

No documentation is available.

Properties

NameDescription
CodeBlockFenceCharacterGets or sets the fence character used for fenced code blocks.
CodeBlockStyleGets or sets the style used for code blocks.
DateFormatGets or sets the format used for dates. The value is a standard or custom DateTimeOffset format string, applied with the invariant culture.
DecisionListStyleGets or sets how decision lists are converted.
EmojiRenderingGets or sets how emoji are converted.
EmphasisMarkerGets or sets the marker used for emphasis.
ExpandStyleGets or sets how collapsible sections are converted.
HeadingStyleGets or sets the heading style to use in Markdown output.
LineBreakStyleGets or sets the style used for explicit line breaks.
MediaRenderingGets or sets how media items are converted.
MediaUrlResolverGets or sets a callback that returns the URL of a media item, or null when it cannot be resolved.
MentionFormatGets or sets the format used for mentions. The {text} placeholder is replaced with the display name of the mentioned user, and {id} with their account identifier.
MentionResolverGets or sets a callback that returns the display name of a mentioned user, or null to use the text stored in the document.
PanelStyleGets or sets how panels are converted.
StatusFormatGets or sets the format used for status lozenges. The {text} placeholder is replaced with the text of the lozenge, and {color} with its color.
TableStyleGets or sets how tables are converted.
TaskListStyleGets or sets how task lists are converted.
ThematicBreakGets or sets the thematic break text to emit for horizontal rules.
UnknownNodeHandlingGets or sets how nodes whose type is not part of the supported schema are converted.
UnorderedListMarkerGets or sets the marker used for unordered lists.

CodeBlockFenceCharacter

AdfToMarkdownOptions.cs

Gets or sets the fence character used for fenced code blocks.

public char CodeBlockFenceCharacter { get; set; }

Property value

char

Gets or sets the style used for code blocks.

public AdfCodeBlockStyle CodeBlockStyle { get; set; }

Property value

AdfCodeBlockStyle

Gets or sets the format used for dates. The value is a standard or custom DateTimeOffset format string, applied with the invariant culture.

public string DateFormat { get; set; }

Property value

string

DecisionListStyle

AdfToMarkdownOptions.cs

Gets or sets how decision lists are converted.

public AdfDecisionListStyle DecisionListStyle { get; set; }

Property value

AdfDecisionListStyle

Gets or sets how emoji are converted.

public AdfEmojiRendering EmojiRendering { get; set; }

Property value

AdfEmojiRendering

Gets or sets the marker used for emphasis.

public AdfEmphasisMarker EmphasisMarker { get; set; }

Property value

AdfEmphasisMarker

Gets or sets how collapsible sections are converted.

public AdfExpandStyle ExpandStyle { get; set; }

Property value

AdfExpandStyle

Gets or sets the heading style to use in Markdown output.

public AdfHeadingStyle HeadingStyle { get; set; }

Property value

AdfHeadingStyle

Gets or sets the style used for explicit line breaks.

public AdfLineBreakStyle LineBreakStyle { get; set; }

Property value

AdfLineBreakStyle

Gets or sets how media items are converted.

public AdfMediaRendering MediaRendering { get; set; }

Property value

AdfMediaRendering

MediaUrlResolver

AdfToMarkdownOptions.cs

Gets or sets a callback that returns the URL of a media item, or null when it cannot be resolved.

public Func<AdfMedia, string?>? MediaUrlResolver { get; set; }

Property value

Func<AdfMedia, string?>?

Remarks

Only media items of type AdfMediaType.External carry a URL in the document. Items stored by Atlassian only carry an identifier and a collection, and resolving them requires an authenticated call to the media API.

Gets or sets the format used for mentions. The {text} placeholder is replaced with the display name of the mentioned user, and {id} with their account identifier.

public string MentionFormat { get; set; }

Property value

string

Gets or sets a callback that returns the display name of a mentioned user, or null to use the text stored in the document.

public Func<AdfMention, string?>? MentionResolver { get; set; }

Property value

Func<AdfMention, string?>?

Remarks

Documents returned by the APIs often omit the display name of a mention.

Gets or sets how panels are converted.

public AdfPanelStyle PanelStyle { get; set; }

Property value

AdfPanelStyle

Gets or sets the format used for status lozenges. The {text} placeholder is replaced with the text of the lozenge, and {color} with its color.

public string StatusFormat { get; set; }

Property value

string

Gets or sets how tables are converted.

public AdfTableStyle TableStyle { get; set; }

Property value

AdfTableStyle

Gets or sets how task lists are converted.

public AdfTaskListStyle TaskListStyle { get; set; }

Property value

AdfTaskListStyle

Gets or sets the thematic break text to emit for horizontal rules.

public string ThematicBreak { get; set; }

Property value

string

UnknownNodeHandling

AdfToMarkdownOptions.cs

Gets or sets how nodes whose type is not part of the supported schema are converted.

public AdfUnknownNodeHandling UnknownNodeHandling { get; set; }

UnorderedListMarker

AdfToMarkdownOptions.cs

Gets or sets the marker used for unordered lists.

public char UnorderedListMarker { get; set; }

Property value

char