mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
Sealed + ref struct
This commit is contained in:
@@ -127,7 +127,7 @@ public sealed class MarkdownPipeline
|
||||
}
|
||||
}
|
||||
|
||||
internal readonly struct RentedHtmlRenderer : IDisposable
|
||||
internal readonly ref struct RentedHtmlRenderer : IDisposable
|
||||
{
|
||||
private readonly HtmlRendererCache _cache;
|
||||
public readonly HtmlRenderer Instance;
|
||||
|
||||
@@ -153,7 +153,7 @@ public abstract class MarkdownObject : IMarkdownObject
|
||||
return Unsafe.As<T>(storage.Trivia);
|
||||
}
|
||||
|
||||
private class DataEntriesAndTrivia
|
||||
private sealed class DataEntriesAndTrivia
|
||||
{
|
||||
private struct DataEntry(object key, object value)
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ public class QuoteBlock : ContainerBlock
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the trivia per line of this QuoteBlock.
|
||||
/// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled, otherwise null.
|
||||
/// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled.
|
||||
/// </summary>
|
||||
public List<QuoteBlockLine> QuoteLines => Trivia;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user