rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.3k stars 732 forks source link

Support for restructured text #1091

Open Insoleet opened 5 years ago

Insoleet commented 5 years ago

It would be great if rouge could support rst format to have rst colorization in Gitlab.

pygments has a lexer for this format. Maybe it can be source of inspiration for rouge (I don't know any ruby sadly so I can't help...) https://bitbucket.org/birkenfeld/pygments-main/src/66535d7e85e5afe4b32fa45dcc1c321766dc9994/pygments/lexers/markup.py?at=default&fileviewer=file-view-default

pyrmont commented 5 years ago

@Insoleet Thanks for filing this issue :) And for the link to the relevant Pygments file!

Rouge mostly relies on the support of our community for new language lexers. We have quite a backlog at the moment but always encourage new language lexer submissions to be submitted via PR. If you'd like to contribute, please feel free. The documentation is a little sparse at the moment but I'm looking to improve that. There is a draft of a new guide on lexer development that might be helpful :)