Blame doc/usage/markdown.md

Justin W. Flory dd3c7e
Using Markdown in Pagure
Justin W. Flory dd3c7e
========================
Justin W. Flory 4f0563
Justin W. Flory ad0b1f
Pagure uses [Markdown syntax highlighting](https://daringfireball.net/projects/markdown/syntax) as the base for formatting comments in issues, pull requests, and in Markdown files in repositories. For basic formatting, Pagure follows common Markdown formatting, but it also has some unique syntax for more advanced formatting. This help page helps demonstrate how to use Markdown in Pagure.
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Headers
Justin W. Flory dd3c7e
Justin W. Flory ad0b1f
To create headings, you will use the `#` symbol before the text. The number of hashes before the text determines the header size.
Justin W. Flory dd3c7e
Justin W. Flory ad0b1f
~~~~
Justin W. Flory ad0b1f
# header1
Justin W. Flory dd3c7e
## header2
Justin W. Flory ad0b1f
### header3
Justin W. Flory ad0b1f
~~~~
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
## 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
## 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 5babdd
~~~~
Justin W. Flory 554748
Before merging this pull request, remember Clark Kent mentioned this:
Justin W. Flory 528343
> Double-check there's no reference to the Kryptonite library in the program since we removed that a few versions ago.
Justin W. Flory 528343
~~~~
Justin W. Flory 554748
Justin W. Flory ec0860
Before merging this pull request, remember Clark Kent mentioned this:
Justin W. Flory cc5d08
> Double-check there's no reference to the Kryptonite library in the program since we removed that a few versions ago.
Justin W. Flory ec0860
Justin W. Flory ec0860
Justin W. Flory ec0860
## Code
Justin W. Flory ec0860
Justin W. Flory cc5d08
You can highlight parts of a line as code or create entire code blocks in your Markdown documents. You can do this with the backtick character (`). Text inside of backticks will not be formatted.
Justin W. Flory ec0860
Justin W. Flory cc5d08
~~~~
Justin W. Flory ec0860
When running the program for the first time, use `superman --initialize`.
Justin W. Flory cc5d08
~~~~
Justin W. Flory ec0860
Justin W. Flory cc5d08
When running the program for the first time, use `superman --initialize`.
Justin W. Flory ec0860
Justin W. Flory cc5d08
To format multiple lines of code into its own block, you can wrap the text block with four tilde (~) characters
Justin W. Flory ec0860
Justin W. Flory cc5d08
~~~~
Justin W. Flory cc5d08
Install the needed system libraries:
Justin W. Flory cc5d08
`~~~~`
Justin W. Flory ec0860
sudo dnf install git python-virtualenv libgit2-devel \
Justin W. Flory ec0860
                 libjpeg-devel gcc libffi-devel redhat-rpm-config
Justin W. Flory cc5d08
`~~~~`
Justin W. Flory cc5d08
~~~~
Justin W. Flory ec0860
Justin W. Flory ec0860
Justin W. Flory ec0860
Install the needed system libraries:
Justin W. Flory cc5d08
Justin W. Flory cc5d08
~~~~
Justin W. Flory ec0860
sudo dnf install git python-virtualenv libgit2-devel \
Justin W. Flory ec0860
                 libjpeg-devel gcc libffi-devel redhat-rpm-config
Justin W. Flory cc5d08
~~~~
Justin W. Flory ec0860
Justin W. Flory ec0860
Justin W. Flory ec0860
## Hyperlinks
Justin W. Flory ec0860
Justin W. Flory cc5d08
Need to embed a link to somewhere else? No problem! You can create an in-line link by wrapping the text in `[ ]` and appending the the URL in 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
## Lists
Justin W. Flory dd3c7e
Justin W. Flory ad0b1f
#### Unordered lists
Justin W. Flory dd3c7e
Justin W. Flory ad0b1f
You can make unordered lists spanning multiple lines with either `-` or `*`.
Justin W. Flory ad0b1f
Justin W. Flory ad0b1f
~~~~
Justin W. Flory ad0b1f
* 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 5babdd
    * Something on this list is unlike the others...
Justin W. Flory 5babdd
~~~~
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 cc5d08
#### Ordered lists
Justin W. Flory cc5d08
Justin W. Flory cc5d08
You can make ordered lists by preceding each line with a number.
Justin W. Flory cc5d08
Justin W. Flory cc5d08
~~~~
Justin W. Flory cc5d08
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 ec0860
    2. Somebody evil lurks on this list!
Justin W. Flory ec0860
~~~~
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
## Tagging users
Justin W. Flory dd3c7e
Justin W. Flory ad0b1f
You can tag other users on Pagure to send them a notification about an issue or pull request. To tag a user, use the `@` symbol followed by their username. Typing the `@` symbol in a comment will bring up a list of users that match the username. The list searches as you type. Once you see the name of the person you are looking for, you can click their name to 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 ad0b1f
[@jflory7](https://pagure.io/user/jflory7), could you please review this pull request and leave feedback?
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
Justin W. Flory dd3c7e
## Tagging issues or pull requests
Justin W. Flory dd3c7e
Justin W. Flory ad0b1f
In a comment, you can automatically link a pull request or issue by its number. To link it, use the `#` character followed by its number. Like with tagging users, Pagure will provide suggestions for issues or pull requests as you type the number. You can select the issue in the drop-down to automatically tag the issue or pull request.
Justin W. Flory dd3c7e
Justin W. Flory ad0b1f
If you need to tag an issue or pull request that is outside of the current project, you are also able to do this. For cross-projects links, you can 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
## Emoji
Justin W. Flory dd3c7e
Justin W. Flory ad0b1f
Pagure natively supports emoji characters. To use emoji, you can use two colons wrapped around the emoji keyword (`:emoji:`). Typing a colon by itself will bring up a list of suggested emoji with a small preview. If you see the one you're looking for, you can click it to automatically 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 cc5d08
Justin W. Flory cc5d08
## Improve this documentation!
Justin W. Flory cc5d08
Justin W. Flory cc5d08
Notice anything that can be improved in this documentation? Find a mistake? You can improve this page! Find it in the official [Pagure repository](https://pagure.io/pagure/blob/master/f/doc/usage/markdown.md).