Skip to content

Commit

Permalink
Add markdown paging example
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Dec 1, 2018
1 parent 19baf0d commit d3a026c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/markdown.rb
@@ -0,0 +1,7 @@
require 'tty-markdown'
require_relative '../lib/tty-pager'

pager = TTY::Pager.new
file = File.join(__dir__, '../README.md')
text = TTY::Markdown.parse_file(file)
pager.page(text)

0 comments on commit d3a026c

Please sign in to comment.