Files
octokit.net/Octokit/Clients/IMarkdownClient.cs

29 lines
1.1 KiB
C#

using System.Threading.Tasks;
namespace Octokit
{
/// <summary>
/// A client for GitHub's markdown APIs.
/// </summary>
/// <remarks>
/// See the <a href="https://docs.github.com/rest/markdown">Markdown API documentation</a> for more details.
/// </remarks>
public interface IMarkdownClient
{
/// <summary>
/// Gets the rendered Markdown for the specified plain-text Markdown document.
/// </summary>
/// <param name="markdown">A plain-text Markdown document</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns>The rendered Markdown.</returns>
Task<string> RenderArbitraryMarkdown(NewArbitraryMarkdown markdown);
/// <summary>
/// Gets the rendered Markdown for an arbitrary markdown document.
/// </summary>
/// <param name="markdown">An arbitrary Markdown document</param>
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
/// <returns>The rendered Markdown.</returns>
Task<string> RenderRawMarkdown(string markdown);
}
}