Module: Octokit::Client::Markdown
- Included in:
- Octokit::Client
- Defined in:
- lib/octokit/client/markdown.rb
Overview
Methods for the Markdown API
Instance Method Summary collapse
-
#markdown(text, options = {}) ⇒ String
Render an arbitrary Markdown document.
Instance Method Details
#markdown(text, options = {}) ⇒ String
Render an arbitrary Markdown document
18 19 20 21 22 23 24 |
# File 'lib/octokit/client/markdown.rb', line 18 def markdown(text, = {}) [:text] = text [:repo] = Repository.new([:repo]) if [:repo] [:accept] = 'application/vnd.github.raw' post 'markdown', end |