Thanks to http://blog.nikosd.com/2011/11/github-flavored-markdown-in-yard.html
# Gemfile
group :development do
gem 'yard'
gem 'redcarpet'
gem 'github-markup'
end
And in .yardopts
:
# .yardopts
--markup-provider=redcarpet
--markup=markdown
Thanks to http://blog.nikosd.com/2011/11/github-flavored-markdown-in-yard.html
# Gemfile
group :development do
gem 'yard'
gem 'redcarpet'
gem 'github-markup'
end
And in .yardopts
:
# .yardopts
--markup-provider=redcarpet
--markup=markdown
Quick note, you'll also need yard-coderay
if you want it to highlight languages other than Ruby: lsegal/yard#1278
Since https://github.com/lsegal/yard/releases/tag/v0.9.27 CommonMarker is supported! lsegal/yard#1388
I'm using Yard 0.9.2 but having trouble getting this to work. It might be because I am developing a gem instead of a regular app, but doing the above worked for me. I did not need to include the
github-markup
gem, just theredcarpet
one and update the.yardopts
with-m markdown -M redcarpet
.