Created
December 11, 2015 13:07
-
-
Save khalidabuhakmeh/c4a74f6998e45364e7ac to your computer and use it in GitHub Desktop.
OctoKit is totally fine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Octokit; | |
using System.Linq; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var client = new GitHubClient(new ProductHeaderValue("test")); | |
var release = client.Release.GetAll("aspnet", "razor").Result.First(); | |
int count = release.Body.Split(new [] { "\r\n" }, StringSplitOptions.None).Length - 1; | |
Console.WriteLine("There are {0} newlines", count); | |
var html = client.Miscellaneous.RenderRawMarkdown(release.Body).Result; | |
Console.WriteLine(html); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
results in the output