예제 #1
0
        private static async Task<string> ConvertToHtml(string markdown)
        {
            var api = RestService.For<IGitHubApi>(baseUrl);
            var request = new RenderRequest() { Text = markdown, Mode = "markdown" };

            return await api.Render(request);
        }
예제 #2
0
        private static async Task <string> ConvertToHtml(string markdown)
        {
            var api     = RestService.For <IGitHubApi>(baseUrl);
            var request = new RenderRequest()
            {
                Text = markdown, Mode = "markdown"
            };

            return(await api.Render(request));
        }