зеркало из https://github.com/github/pages-gem.git
Add test to ensure TeX is properly converted by kramdown
This commit is contained in:
Родитель
aaf0227d2c
Коммит
044a9e1d4e
|
@ -2,3 +2,7 @@
|
|||
---
|
||||
|
||||
# Test
|
||||
|
||||
### Math
|
||||
|
||||
$$a^2 + b^2 = c^2$$
|
||||
|
|
|
@ -93,6 +93,10 @@ RSpec.describe "Pages Gem Integration spec" do
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче