Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
This PR is kind of a draft proposal for supporting Rouge 2.0.
Since for the moment Kramdown supports Rouge < 2.0 which is considerably outdated, little by little it begins to hard to coexist with other gems which support Rouge >= 2.0 only.
I am still not sure what is the best way to support Rouge 2.0. Maybe we can support Rouge >= 2.0 only like other gems do (e.g. middleman-syntax drops Rouge 1.x support). However, I doubt that it is comfortable way for Kramdown because Rouge is an optional dependency and seem not to be easy to fix version to 2.0 or later.
So, this is the PR for supporting both Rouge 1.x and 2.0. Syntax highlighting will work just the same as before with Rouge 2.0, but it spoils some goodness, testability, for example.
How does this sound to you?
Related to #350
@5t111111 Some more things:
Can you please do it later? I am not sure what is the appropriate way to archive this purpose.
Please point out if you have any further suggestinons.