I'm just starting to use YARD for documenting my Rails app. I didn't specify any specific Markup handler, but I would have expected that `code` would be converted to code
, which doesn't seem to happen. Is this normal behavior? Do I have to add some additional option to make this work? Thank you.
The syntax is a little different from markdown (markdown vs rdoc) I suppose. Using '+'
works. +code+ gets rendered in a <code>
block.
From GitHub, I was used to use backticks for inline code comments. So after some research I found the following, very nice solution.
redcarpet
gem to your Gemfilebundle
command--markup=markdown
to your .yardopts
fileyard server --reload
Now you can use Syntax like on GitHub, e.g.
```ruby def bla; puts 'bla'; end ```
Or
`this is inline code`
Nice! :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With