MarkdownMediaLinkOptions Class
How MarkdownExtensions.MediaLinks renders the images of audio, video, and of the sites that host them.
public sealed class MarkdownMediaLinkOptions : IEquatable<MarkdownMediaLinkOptions>- Implements
Constructors
| Name | Description |
|---|---|
| MarkdownMediaLinkOptions() |
MarkdownMediaLinkOptions()
MarkdownMediaLinkOptions.cspublic MarkdownMediaLinkOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| AddControls | Gets a value indicating whether audio and video have the controls attribute. |
| Class | Gets the class of the element, or an empty string for none. |
| Default | Gets the options of Markdig: a width of 500, a height of 281, controls, and the hosts of IMarkdownMediaHost.KnownHosts. |
| ExtensionToMimeType | Gets the MIME types of the extensions of the audio and the video files, such as .mp4. By default, the formats that browsers play: .mp4, .m4v, .webm, .ogv, .mov, .mkv, .3gp, .3g2, .mpeg and .mpg for video, and .mp3, .m4a, .aac, .ogg, .oga, .opus, .wav, .weba, .flac, .mka, .aif and .aiff for audio. The keys start with a dot, and a dictionary whose comparer ignores the case matches .MP4 too. |
| Height | Gets the height of the element, or an empty string for none. Audio has no height. |
| Hosts | Gets the sites whose links are rendered as an <iframe>, tried in order. |
| Width | Gets the width of the element, or an empty string for none. |
AddControls
MarkdownMediaLinkOptions.csDefault
MarkdownMediaLinkOptions.csGets the options of Markdig: a width of 500, a height of 281, controls, and the hosts of IMarkdownMediaHost.KnownHosts.
public static MarkdownMediaLinkOptions Default { get; }Property value
ExtensionToMimeType
MarkdownMediaLinkOptions.csGets the MIME types of the extensions of the audio and the video files, such as .mp4. By default, the formats that browsers play: .mp4, .m4v, .webm, .ogv, .mov, .mkv, .3gp, .3g2, .mpeg and .mpg for video, and .mp3, .m4a, .aac, .ogg, .oga, .opus, .wav, .weba, .flac, .mka, .aif and .aiff for audio. The keys start with a dot, and a dictionary whose comparer ignores the case matches .MP4 too.
public IReadOnlyDictionary<string, string> ExtensionToMimeType { get; init; }Property value
Gets the sites whose links are rendered as an <iframe>, tried in order.
public ImmutableArray<IMarkdownMediaHost> Hosts { get; init; }Property value
Methods
| Name | Description |
|---|---|
| Equals(MarkdownMediaLinkOptions?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Equals overloads
Equals(MarkdownMediaLinkOptions?)
public bool Equals(MarkdownMediaLinkOptions? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(MarkdownMediaLinkOptions?, MarkdownMediaLinkOptions?) | |
| operator !=(MarkdownMediaLinkOptions?, MarkdownMediaLinkOptions?) |
operator ==(MarkdownMediaLinkOptions?, MarkdownMediaLinkOptions?)
public static bool operator ==(MarkdownMediaLinkOptions? left, MarkdownMediaLinkOptions? right)No documentation is available.
operator !=(MarkdownMediaLinkOptions?, MarkdownMediaLinkOptions?)
public static bool operator !=(MarkdownMediaLinkOptions? left, MarkdownMediaLinkOptions? right)No documentation is available.