Markdown

Markdown

RateLimit allows users to query their rate-limit status

Constructor

new Markdown(auth, apiBaseopt)

construct a RateLimit

Parameters:
Name Type Attributes Description
auth Requestable.auth

the credentials to authenticate to GitHub

apiBase string <optional>

the base Github API URL

Source:

Methods

render(options, cbopt) → {Promise}

Render html from Markdown text.

Parameters:
Name Type Attributes Description
options Object

conversion options

Properties
Name Type Attributes Default Description
text string <optional>

the markdown text to convert

mode string <optional>
markdown

can be either markdown or gfm

context string <optional>

repository name if mode is gfm

cb Requestable.callback <optional>

will receive the converted html

Source:
See:
Returns:
  • the promise for the http request
Type
Promise