Article version: GitHub.com
Article version: GitHub.com
In this article
GitHub Pages is a service that turns Markdown files into a website and hosts them for free on the internet. If you know how to use GitHub and you need to create a simple webpage, you can’t do better than GitHub Pages. Just create a new repository on GitHub, commit the Markdown files, and enable the GitHub Pages feature. StackOverflow, and GitHub had millions of people using Markdown. And Markdown started to be used beyond the web, to author books, articles, slide shows, letters, and lecture notes. What distinguishes Markdown from many other lightweight markup.
Parameters
Name | Type | In | Description |
---|---|---|---|
accept | string | header | Setting to |
text | string | body | Required. The Markdown text to render in HTML. |
mode | string | body | The rendering mode. Default:markdown |
context | string | body | The repository context to use when creating references in |
Ignoring Markdown formatting. You can tell GitHub to ignore (or escape) Markdown formatting by using before the Markdown character. Let's rename.our-new-project. to.our-old-project. For more information, see Daring Fireball's 'Markdown Syntax.' Further reading. GitHub Flavored Markdown Spec 'About writing and formatting on GitHub'.
Code samples
Shell
GitHub Pages: Working With A MarkDown Editor
JavaScript (@octokit/core.js)
Response
Not modified
Notes
Github Markdown Image Size
Render a Markdown document in raw mode
Github Markdown Internal Link
You must send Markdown as plain text (using a Content-Type
header of text/plain
or text/x-markdown
) to this endpoint, rather than using JSON format. In raw mode, GitHub Flavored Markdown is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.