Skip to content

Commit

Permalink
Add test to ensure TeX is properly converted by kramdown
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Aug 6, 2020
1 parent aaf0227 commit 044a9e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/fixtures/kramdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
---

# Test

### Math

$$a^2 + b^2 = c^2$$
4 changes: 4 additions & 0 deletions spec/github-pages/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ def rm_destination
it "converts markdown to HTML" do
expect(contents).to match('<h1 id="test">Test</h1>')
end

it "converts math to mathjax" do
expect(contents).to include('\[a^2 + b^2 = c^2\]')
end
end

context "kramdown-parser-gfm" do
Expand Down

0 comments on commit 044a9e1

Please sign in to comment.