Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid duplicated output using highlight tags #2264
This tiny patch fixes a bug while using Rouge with
Therefore, we should simply define an empty string and append the prefix if it is present.
I noticed that this is only happening with posts (not index.html for instance).
I did not manage to write a failing test though so I wrote a feature (see this gist ; let me know if I'm doing something wrong). The assertion is also a bit tricky/brittle ; let me know if you have a better idea to ensure that there is only a single
There are also other pull requests about this area of the code (i.e. #2221 and #2154) but I don't know which one you are going to ship and Jekyll 2.0 is already at the release candidate step so I take the liberty to send the proper fix here.
Have a nice day.