Skip to content

Commit

Permalink
Add supported HTML elements example
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Aug 31, 2020
1 parent 18dd354 commit 8b12bdb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/html.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

require_relative "../lib/tty-markdown"

markdown =<<-TEXT
## Deleted
<del>done</del> made a mistake
## Newline
content<br>
## Image
<img width="130" src="https://github.com/piotrmurach/tty/raw/master/images/tty.png" alt="tty logo" />
TEXT

print TTY::Markdown.parse(markdown)

0 comments on commit 8b12bdb

Please sign in to comment.