Below is Markdown formatting. For Textile formatting see Textile formatting.
Currently HTML tags are not allowed by default. See #15520 and #20497 for details. For other limitations of the current Markdown formatting see #16373 and #21443.
Redmine allows hyperlinking between resources (wiki pages, issues, documents...) from anywhere text formatting is used.
Wiki links:
You can also link to pages of another project's wiki (using the project identifier):
Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.
Links to other resources:
Escaping:
HTTP URLs are automatically turned into clickable links:
HTTP URLs can also use different text than the link itself:
Email addresses are automatically turned into clickable links:
For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See http://daringfireball.net/projects/markdown/syntax, http://agea.github.io/tutorial.md/, http://stackoverflow.com/editing-help for information on using any of these features. A few samples are included below, but the engine is capable of much more of that. For conversions see Pandoc. The Redcarpet formatter is used.
Not supported by Markdown
* **bold** __bold__
* *italic* _italic_
* ***bold italic*** ___bold italic___
* <ins>underline</ins>
* <del>strike through</del>
* Plain <sup>superscript</sup>
* Plain <sub>subscript</sub>
* `inline monospace`
* normal **bold** _italic_ normal;E=mc<sup>2</sup>
* normal<notextile></notextile>**bold**<notextile></notextile>_italic_<notextile></notextile>normal;E=mc<sup>2</sup>
* Escaping: \*\*bold\*\* \_italic\_ \`inlinemono\`
* <pre>**some lines** some [link](http://www.redmine.org)</pre>
* <pre>\*\*some lines\*\* some \[link](http\://www\.redmine\.org)</pre>
displays:
inline monospace
some lines some link
**some lines** some [link](http://www.redmine.org)
Note: HTML tags need to be allowed to use the HTML tags (<ins>, <del>, <sup>, <sub>). See #15520-16 and #15520-17 for details.
* <span style="color:red">red</span> <span style="color:green">green</span> <span style="color:yellow">yellow</span> <span style="color:#82B6E1">blue'ish</span>
* <span style="color:red">red</span><span style="color:green">green</span><span style="color:yellow">yellow</span><span style="color:#82B6E1">blue'ish</span>
* <span style="background-color:lightgreen">Lightgreen Background</span> <span style="background-color:yellow">Yellow Background</span>
* <span style="background-color:lightgreen">Lightgreen Background</span><span style="background-color:yellow">Yellow Background</span>
displays:
Note: HTML tags need to be allowed to use the HTML tag (<span>). See #15520-16 and #15520-17 for details.
If you have an image attached to your wiki page, it can be displayed inline using its filename: ![](attached_image.png).
As of this writing, Markdown has no syntax for specifying the dimensions of an image; if this is important to you, you can use regular HTML <img> tags.
Note: HTML tags need to be allowed to use the HTML tag (<img>). See #15520-16 and #15520-17 for details.
# Heading
## Subheading
### Subheading
or
Heading
=======
Subheading
----------
Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.
Markdown does not support alignment of a paragraph. Use <div> tags if you need it.
left aligned
<div style="padding-left:1em;">
left ident 1em
</div>
<div style="padding-left:2em;">
left ident 2em
as well as for following lines
</div>
<div style="text-align:right;">
right aligned
</div>
<div style="padding-right:3em;text-align:right;">
right ident 3em
</div>
<div style="text-align:center;">
This is centered paragraph.
</div>
displays;
left aligned
left ident 1em
left ident 2em
as well as for following lines
right aligned
right ident 3em
This is centered paragraph.
Note: HTML tags need to be allowed to use the HTML tags (<div>). See #15520-16 and #15520-17 for details.
----
displays:
<pre>**Your text won't become bold**</pre>
displays:
**Your text won't become bold**
You can use > at the beginning of each line and stack them for nested quotes:
>> Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. >> To go live, all you need to add is a database and a web server. > Great!
displays:
Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern.
To go live, all you need to add is a database and a web server.Great!
Unordered lists use asterisks (*
), pluses (+
), and hyphens (-
) as list markers
* Item 1 * Item 2 * Item 21 (two spaces indentation) * Item 22 * Item 3
displays:
Ordered lists use numbers followed by periods.
1. Item 1 3. Item 2 2. Item 3 1. Item 3.1 (two spaces) 1. Item 3.2
displays:
Note that the actual numbers you use to mark the list have no effect on the output.
Markdown does not have syntax for a table. Use an HTML table to write a table.
<table>
<tr><td style="text-align:center;"><strong>UserID</strong></td><td style="text-align:center;"><strong>Name</strong></td><td style="text-align:center;"><strong>Group</strong></td><td style="text-align:center;"><strong>attribute list</strong></td></tr>
<tr><td>Starting with</td><td>a</td><td>simple</td><td>row</td></tr>
<tr><td style="text-align:center;" colspan="3">IT</td><td>align left</td></tr>
<tr><td>1</td><td>Artur Pirozhkov</td><td rowspan="2">Users</td><td style="text-align:right;">align right</td></tr>
<tr><td>2</td><td>Vasya Rogov</td><td style="text-align:center;">center</td></tr>
<tr><td rowspan="2">3</td><td rowspan="2">John Smith</td><td>Admin</td><td style="vertical-align:top;" rowspan="2">valign top</td></tr>
<tr><td>(root)</td></tr>
<tr><td rowspan="2">4</td><td rowspan="2">-</td><td>Nobody</td><td style="vertical-align:bottom;" rowspan="2">valign bottom</td></tr>
<tr><td>(anonymous)</td></tr>
</table>
displays;
UserID | Name | Group | attribute list |
Starting with | a | simple | row |
IT | align left | ||
1 | Artur Pirozhkov | Users | align right |
2 | Vasya Rogov | center | |
3 | John Smith | Admin (root) |
valign top |
4 | - | Nobody (anonymous) |
valign bottom |
Note: HTML tags need to be allowed to use the HTML tags (<table>, <tr>, <td>). See #15520-16 and #15520-17 for details.
{{toc}} => left aligned toc
{{>toc}} => right aligned toc
Please keep in mind, that the toc-tag needs an empty line above and underneath it and no other text before and after it.
Example:
h1. headLineOne
h2. something
{{toc}}
h2. something more
Redmine includes a macros system that lets you add custom functions to insert dynamic content in formatted text. You can learn about writing your own macros in RedmineMacros. Redmine also includes a few builtin macros:
hello_world
Sample macro.
macro_list
Displays a list of all available macros, including description if available.
child_pages
Displays a list of child pages. With no argument, it displays the child pages of the current wiki page. Examples:
!{{child_pages}} -- can be used from a wiki page only
!{{child_pages(depth=2)}} -- display 2 levels nesting only
include
Include a wiki page. Example:
!{{include(Foo)}}
or to include a page of a specific project wiki:
!{{include(projectname:Foo)}}
collapse
Inserts of collapsed block of text. Example:
{{collapse(View details...)
This is a block of text that is collapsed by default.
It can be expanded by clicking a link.
}}
thumbnail
Displays a clickable thumbnail of an attached image. Examples:
{{thumbnail(image.png)}} {{thumbnail(image.png, size=300, title=Thumbnail)}}
sample_macro
Sample macro
Code highlighting relies on CodeRay, a
fast syntax highlighting library written completely in Ruby. It
currently supports C, C++, CSS, Delphi, Diff, Groovy, HTML, Java,
Javascript, JSON, Nitro-XHTML, PHP, Python, RHTML, Ruby, Scheme, SQL,
XML and YAML code.
You can highlight code in your wiki page using this syntax:
``` ruby
Place your code here.
```
Example:
# The Greeter class
class Greeter
def initialize(name)
@name = name.capitalize
end
def salute
puts "Hello #{@name}!"
end
end