unsafe public Markdown(Renderer renderer, MarkdownExtensions extensions, int maxNesting) { this.renderer = renderer; ptr = NativeMethods.sd_markdown_new((extensions == null ? 0 : extensions.ToUInt()), (IntPtr)maxNesting, renderer.callbacksgchandle.AddrOfPinnedObject(), renderer.opaque); }
void Dispose(bool disposing) { if (disposing) { GC.SuppressFinalize(this); } if (ptr != IntPtr.Zero) { NativeMethods.sd_markdown_free(ptr); ptr = IntPtr.Zero; } if (buffer != null) { buffer.Dispose(); } renderer = null; }
public Markdown(Renderer renderer, MarkdownExtensions extensions) : this(renderer, extensions, 16) { }
public Markdown(Renderer renderer, int maxNesting) : this(renderer, null, maxNesting) { }
public Markdown(Renderer renderer) : this(renderer, null) { }