Blame doc/usage/markdown.md

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

Justin W. Flory bf156d
>>>>>>> Add documentation for using Markdown in Pagure
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 bf156d
<<<<<<< ad0b1fdbfeed4d3673342cdad9a43d4b22372fe1
Justin W. Flory bf156d
=======
Justin W. Flory bf156d

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