Blame doc/usage/markdown.md

Justin W. Flory dd3c7e
Using Markdown in Pagure
Justin W. Flory dd3c7e
========================
Justin W. Flory 4f0563
Justin W. Flory dd3c7e
Pagure uses [Markdown syntax highlighting](https://daringfireball.net/projects/markdown/syntax)
Justin W. Flory dd3c7e
as the base for formatting comments in issues, pull requests, and in
Justin W. Flory dd3c7e
Markdown files in repositories. For basic formatting, Pagure follows
Justin W. Flory dd3c7e
common Markdown formatting, but it also has some unique syntax for more
Justin W. Flory dd3c7e
advanced formatting. This help page helps demonstrate how to use Markdown
Justin W. Flory dd3c7e
in Pagure.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Headers
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
To create headings, you will use the `#` symbol before the text. The
Justin W. Flory dd3c7e
number of hashes before the text determines the header size.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
# header1
Justin W. Flory dd3c7e
## header2
Justin W. Flory dd3c7e
### header3
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e

Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
# header 1
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## header2
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
### header3
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e

Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Styling
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
You can mark up text with bold, italics, or strikethrough.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
* **Style**: Bold
Justin W. Flory dd3c7e
    * Syntax: `** **` or `__ __`
Justin W. Flory dd3c7e
    * Example: `**This is bold text**`
Justin W. Flory dd3c7e
    * Output: **This is bold text**
Justin W. Flory dd3c7e
* **Style**: Italics
Justin W. Flory dd3c7e
    * Syntax: `* *` or `_ _`
Justin W. Flory dd3c7e
    * Example: `_This is italicized text_`
Justin W. Flory dd3c7e
    * Output: _This is italicized text_
Justin W. Flory dd3c7e
* **Style**: Strikethrough
Justin W. Flory dd3c7e
    * Syntax: `~~ ~~`
Justin W. Flory dd3c7e
    * Example: `~~This text is no longer relevant~~`
Justin W. Flory dd3c7e
    * Output: ~~This text is no longer relevant~~
Justin W. Flory dd3c7e
* **Style**: Bold and italics
Justin W. Flory dd3c7e
    * Syntax: `** **` and `_ _`
Justin W. Flory dd3c7e
    * Example: `**This text is the _most important thing ever_**`
Justin W. Flory dd3c7e
    * Output: **This text is the _most important thing ever_**
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Quoting
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
You can show text as being quoted with the `>` character.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Before merging this pull request, remember Clark Kent mentioned this:
Justin W. Flory dd3c7e
> Double-check there's no reference to the Kryptonite library in the
Justin W. Flory dd3c7e
> program since we removed that a few versions ago.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Before merging this pull request, remember Clark Kent mentioned this:
Justin W. Flory dd3c7e
> Double-check there's no reference to the Kryptonite library in the
Justin W. Flory dd3c7e
> program since we removed that a few versions ago.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Code
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
You can highlight parts of a line as code or create entire code blocks in
Justin W. Flory dd3c7e
your Markdown documents. Text inside of backticks will not be formatted.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
When running the program for the first time, use `superman --initialize`.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
When running the program for the first time, use `superman --initialize`.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
To format multiple lines of code into its own block, you will need to use
Justin W. Flory dd3c7e
raw HTML with the ‹pre›‹/pre› tags.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Install the needed system libraries:
Justin W. Flory dd3c7e
‹pre›
Justin W. Flory dd3c7e
sudo dnf install git python-virtualenv libgit2-devel \
Justin W. Flory dd3c7e
                 libjpeg-devel gcc libffi-devel redhat-rpm-config
Justin W. Flory dd3c7e
‹pre›
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Install the needed system libraries:
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
sudo dnf install git python-virtualenv libgit2-devel \
Justin W. Flory dd3c7e
                 libjpeg-devel gcc libffi-devel redhat-rpm-config
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Hyperlinks
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Need to embed a link to somewhere else? No problem! You can create an in-
Justin W. Flory dd3c7e
line link by wrapping the text in `[ ]` and appending the the URL in
Justin W. Flory dd3c7e
parentheses `( )` immediately after.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
`Pagure is used by the [Fedora Project](https://fedoraproject.org).`
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Pagure is used by the [Fedora Project](https://fedoraproject.org).
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Lists
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
You can make unordered lists spanning multiple lines with either `-` or
Justin W. Flory dd3c7e
`*`.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
* Superman
Justin W. Flory dd3c7e
* Batman
Justin W. Flory dd3c7e
    * Protector of Gotham City!
Justin W. Flory dd3c7e
* Superwoman
Justin W. Flory dd3c7e
* Harley Quinn
Justin W. Flory dd3c7e
    * Something on this list is unlike the others...
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
* Superman
Justin W. Flory dd3c7e
* Batman
Justin W. Flory dd3c7e
    * Protector of Gotham City!
Justin W. Flory dd3c7e
* Superwoman
Justin W. Flory dd3c7e
* Harley Quinn
Justin W. Flory dd3c7e
    * Something on this list is unlike the others...
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
You can make ordered lists by preceding each line with a number.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
1. Superman
Justin W. Flory dd3c7e
2. Batman
Justin W. Flory dd3c7e
    1. Protector of Gotham City!
Justin W. Flory dd3c7e
    2. He drives the Batmobile!
Justin W. Flory dd3c7e
3. Superwoman
Justin W. Flory dd3c7e
4. Harley Quinn
Justin W. Flory dd3c7e
    1. Something on this list is unlike the others...
Justin W. Flory dd3c7e
    2. Somebody evil lurks on this list!
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
1. Superman
Justin W. Flory dd3c7e
2. Batman
Justin W. Flory dd3c7e
    1. Protector of Gotham City!
Justin W. Flory dd3c7e
    2. He drives the Batmobile!
Justin W. Flory dd3c7e
3. Superwoman
Justin W. Flory dd3c7e
4. Harley Quinn
Justin W. Flory dd3c7e
    1. Something on this list is unlike the others...
Justin W. Flory dd3c7e
    2. Somebody evil lurks on this list!
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Tagging users
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
You can tag other users on Pagure to send them a notification about an
Justin W. Flory dd3c7e
issue or pull request. To tag a user, use the `@` symbol followed by their
Justin W. Flory dd3c7e
username. Typing the `@` symbol in a comment will bring up a list of users
Justin W. Flory dd3c7e
that match the username. The list searches as you type. Once you see the
Justin W. Flory dd3c7e
name of the person you are looking for, you can click their name to
Justin W. Flory dd3c7e
automatically complete the tag.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
`@jflory7, could you please review this pull request and leave feedback?`
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
[@jflory7](https://pagure.io/user/jflory7), could you please review this
Justin W. Flory dd3c7e
pull request and leave feedback?
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Tagging issues or pull requests
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
In a comment, you can automatically link a pull request or issue by its
Justin W. Flory dd3c7e
number. To link it, use the `#` character followed by its number. Like
Justin W. Flory dd3c7e
with tagging users, Pagure will provide suggestions for issues or pull
Justin W. Flory dd3c7e
requests as you type the number. You can select the issue in the drop-down
Justin W. Flory dd3c7e
to automatically tag the issue or pull request.
Justin W. Flory dd3c7e
Justin W. Flory 4f0563
If you need to tag an issue or pull request that is outside of the current
Justin W. Flory 4f0563
project, you are also able to do this. For cross-projects links, you can
Justin W. Flory 4f0563
tag them by typing `<project name="">#id` or `<username>/<project name="">#id`.</project></username></project>
Justin W. Flory 4f0563
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Emoji
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Pagure natively supports emoji characters. To use emoji, you can use two
Justin W. Flory dd3c7e
colons wrapped around the emoji keyword (`:emoji:`). Typing a colon by
Justin W. Flory dd3c7e
itself will bring up a list of suggested emoji with a small preview. If
Justin W. Flory dd3c7e
you see the one you're looking for, you can click it to automatically
Justin W. Flory dd3c7e
complete the emoji.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
`I reviewed the PR and it looks good to me. :+1: Good to merge! :clapper:`
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
I reviewed the PR and it looks good to me. :+1: Good to merge! :clapper:
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
 
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Improve this documentation!
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Notice anything that can be improved in this documentation? Find a
Justin W. Flory dd3c7e
mistake? You can improve this page! Find it in the official [Pagure
Justin W. Flory dd3c7e
repository](https://pagure.io/pagure/blob/master/f/doc/usage/markdown.md).