gettalong / kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
http://kramdown.gettalong.org
Other
1.72k stars 271 forks source link

diff is not work if i add a languge name #763

Closed qiudaoermu closed 2 years ago

qiudaoermu commented 2 years ago
++ i' am apple
-- i' am apple
image
gettalong commented 2 years ago

Please provide more details (e.g. whether and how this works with rouge) and don't use three exclamation marks.

qiudaoermu commented 2 years ago

if i add js after diff, the code color don't change with kramdown, but it works in github markdown. the image above is a screenshots of code

  ```diff js
  ++ i' am apple
  -- i' am apple
gettalong commented 2 years ago

Github doesn't use kramdown, so you can't compare them. kramdown uses rouge syntax highlighter behind the scenes and therefore only supports those language names that are available there. Please ask there how to do what you want.