As The last ship sailed towards the distant horizon I sat there watching on a rock My mind slowly drifting away Forming into my... Dreamtale
Usage of github api - convert md file to html
2017-11-20 / 1 min read

By using Github java api, we can convert our md files to github style htmls easily.

Here is the code in

	 * Get HTML for given Markdown text
	 * <p>
	 * Use {@link #getRepositoryHtml(IRepositoryIdProvider, String)} if you want
	 * the Markdown scoped to a specific repository.
	 * @param text
	 * @param mode
<!-- more -->

	 * @return HTML
	 * @throws IOException
	public String getHtml(final String text, final String mode)
			throws IOException {
		return readStream(getStream(text, mode));