Question

Say I have the following in a jekyll post:

{% highlight ruby linenos %}
def foo
  puts 'foo'
end
{% endhighlight %}


## an h2

The highlighting works correctly with me using pygments, but I get the literal "## an h2" in my post. All markdown syntax does not work correctly after a highlight block for me.

Was it helpful?

Solution

I was converting some stuff from HTML over to jekyll/markdown and had left an HTML tag open at the bottom of the document. When I removed the open tag, things went back to normal.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top