Giter VIP home page Giter VIP logo

readme_formatting's Introduction

Headings

To create a heading, add one to six # symbols before your heading text. The number of # you use will determine the size of the heading.

# The largest heading
## The second largest heading
###### The smallest heading

A table of contents

When you use two or more headings, GitHub automatically generates a table of contents which you can access by clicking within the file header. Each heading title is listed in the table of contents and you can click a title to navigate to the selected section.

Alternatively you could create it manually with links. This option is useful when:

  • you work with readme not only via browser and GitHub.
  • in the file you only refer to the sections from other readme files.

Styling text

Example Output
**Bold 1** Bold 1
__Bold 2__ Bold 2
*Italic 1* Italic 1
_Italic 2_ Italic 2
~~Strikethrough~~ Strikethrough
~~`Strikethrough code`~~ Strikethrough code
**Bold and _nested italic_** Bold and nested italic
***All bold and italic*** All bold and italic
<sub>This is a subscript text</sub> This is a subscript text
<sup>This is a superscript text</sup> This is a superscript text

Quoting

Quoting text:

> Text that is a quote

Output:

Text that is a quote

Quoting code:

Wrap value with a single `: quoted code

Wrap multilines with ```:

cod line 1
code line 2

Strikethrough code wrap it with ~~` and `~~:

Strikethrough code

Tables

By including colons : within the header row, you can define text to be left-aligned, right-aligned, or center-aligned:

| Left-Aligned           |     Center Aligned     |          Right Aligned |
|:-----------------------|:----------------------:|-----------------------:|
| col 3 is               |    some wordy text     |                  $1600 |
| col 2 is               |        centered        |                    $12 |
| zebra stripes          |        are neat        |                     $1 |
| [tables link](#tables) | [tables link](#tables) | [tables link](#tables) |

Result:

Left-Aligned Center Aligned Right Aligned
col 3 is some wordy text $1600
col 2 is centered $12
zebra stripes are neat $1
tables link tables link tables link

Note: In IntelliJ IDEA, you get a warning, if you do not format the value itself with the right number of spaces. Just apply the quick fix for the whole table.

readme_formatting's People

Contributors

alexandrsokolov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.