Using Markdown
HackerOne supports markdown syntax on reports, profiles, and security pages.
Headers
Markdown Input:
A First Level Header
=====================
A Second Level Header
---------------------
### Header 3
Output:
Blockquotes
Markdown Input:
>text in blockquote
>more text in blockquote
Output:
Text emphasis
Markdown Input:
*This text is italicized*
_This text is underlined_
**This text is bold**
__This text is bold__
~~This text is deleted~~
==This text is highlighted==
Output:
Lists
Unordered Lists
Markdown Input:
* Candy.
* Gum.
* Juice.
this:
+ Candy.
+ Gum.
+ Juice.
and this:
- Candy
- Gum.
- Juice.
all produce the same output:
Numbered Lists
Markdown Input:
1. Red
2. Green
3. Blue
Output:
If you put blank lines between items, you’ll get <p>
tags for the list item text. You can create multi-paragraph list items by indenting the paragraphs by 4 spaces or 1 tab:
* A list item.
With multiple paragraphs.
* Another item in the list.
Links
Markdown supports two styles for creating links: inline and reference. With both styles, you use square brackets to delimit the text you want to turn into a link.
Inline-style links use parentheses immediately after the link text. For example:
Markdown Input:
This is an [example link](http://example.com/).
Output:
Optionally, you may include a title attribute in the parentheses. Hover on the link to see the title:
This is an [example link](http://example.com/ "With a Title").
This is an example link.
Reference-style links allow you to refer to your links by names, which you define elsewhere in your document:
Markdown Input:
I get 10 times more traffic from [Google][1] than from
[Yahoo][2] or [MSN][3].
[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"
Output:
The title attribute is optional. Link names may contain letters, numbers and spaces, but are not case sensitive.
Markdown Input:
I start my morning with a cup of coffee and
[The New York Times][NY Times].
[ny times]: http://www.nytimes.com/
Output:
Email Links
You don't need to use markdown to create a mailto:
link. Simply enter the email as is and it will automatically be converted to a mailto:
link.
Code
In a regular paragraph, you can create code span by wrapping text in back tick quotes. Any ampersands (&) and angle brackets (< or >) will automatically be translated into HTML entities. This makes it easy to use Markdown to write about HTML example code.
Markdown Input:
The text has sample `code`
Output:
To specify an entire block of pre-formatted code, wrap the text within 3 back tick quotes ```. Just like with code spans, &, <, and > characters will be escaped automatically.
Markdown Input:
Output:
To use syntax highlighting, specify the content type after the three opening back tick quotes.
Markdown Input:
```javascript
document.location = 'https://hackerone.com';
Output:
Go to the following web page to see which content types are available for syntax highlighting: https://github.com/jneen/rouge/tree/master/lib/rouge/demos.
User mentions
You can mention a user by prefixing username with '@' symbol
Markdown Input:
@demo-member reported the issue
Output:
Report references
You can reference a report by prefixing report id with '#' symbol
#105887 is a publicly disclosed bug
#105887 is a publicly disclosed bug
Attachment references
You can reference an attachment while writing reports, comments in reports and report summary. You can do this by writing 'F' followed by attachment id (F). The attachment id is displayed before the attachment name once the upload is successful.
Example: Consider a user is creating a report and uploads an attachment. Once the attachment is uploaded successfully, you will see see the reference id with the attachment name.
Now you can reference the attachment in the report by writing 'F1' and the attachment is referenced in the report as shown below.
When the link is clicked, the attachment is displayed in the modal.
Inline images and videos
You can insert inline images and videos in the report description, comments and report summary by writing the attachment reference id within curly braces (as in {F:id}).
Example: For the above attachment, the markdown
Here is an inlined image of an apple {F1}
will render the following: