Skip to content

Instantly share code, notes, and snippets.

@pi314
pi314 / gfm-render
Last active February 23, 2025 15:38 — forked from Pysis868/gfm-render
Offline renderer for GitHub flavoured markdown
#!/usr/bin/env ruby
# Renders Markdown content offline by converting it to HTML using GitHub's own redcarpet renderer software, and their additional CSS.
# Does require a download of the additional GitHub CSS to a local cache.
# Replaces grip for preferred offline functionality: https://github.com/joeyespo/grip/issues/35
# Dependencies: redcarpet
require 'optparse'