我正在使用https://github.com/mmistakes/so-simple-theme,它真的很好。似乎昨晚github正确地突出显示了我的围栏代码块。在本地,在开发中,一切似乎都很好。但当我推送到github代码库时,围栏代码块并没有生成正确的html结构,以确保代码得到突出显示。我不确定如何在我的SO帖子中显示这一点。
考虑到下面的回购
https://github.com/rubyonrailstutor/rubyonrailstutor.github.io
考虑下面的屏幕截图

左侧显示的页面具有正确的html结构,右侧的页面和显示与左侧相同代码的github页面则不正确。要进一步调试它,我可以查看哪些内容?谢谢。
为了更深入,我使用了kramdown风格~
#### modify spec/spec_helper.rb
~~~ruby
config.expect_with :rspec do |c|
c.syntax = :expect
end
~~~
#### modify spec/models/restaurant_spec.rb
~~~ ruby
require 'spec_helper'
describe Restaurant do
subject(:restaurant) { FactoryGirl.build(:restaurant, name: nil)}
it {expect(restaurant.valid?).to be_false}
end
~~~ 发布于 2014-03-12 09:53:51
使用以下命令肯定会有问题
~~~ ruby
#some code
~~~而不是kramdown,我不得不用
{% highlight ruby %}
{% endhighlight %}我不确定我对此有何感想。
https://stackoverflow.com/questions/22337980
复制相似问题