Skip to content

Commit

Permalink
Add math element example
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Aug 23, 2020
1 parent 741f708 commit ec898e9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions examples/math.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# frozen_string_literal: true

require_relative "../lib/tty-markdown"

markdown =<<-TEXT
## Math formula inline
Wave form: $$ nλ = dsinθ $$
## Math formula block
Wave form:
$$ nλ = dsinθ $$
TEXT

print TTY::Markdown.parse(markdown)

0 comments on commit ec898e9

Please sign in to comment.