From: Go MAEDA Date: Sun, 20 Oct 2024 07:51:38 +0000 (+0000) Subject: Drop deprecated Redcarpet based Markdown formatter (#40149). X-Git-Tag: 6.0.0~53 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5407fea87338e2de3fb4bbd8edcd671eed910a52;p=redmine.git Drop deprecated Redcarpet based Markdown formatter (#40149). Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23153 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/Gemfile b/Gemfile index 355efb11c..3960a5f8a 100644 --- a/Gemfile +++ b/Gemfile @@ -44,11 +44,6 @@ group :minimagick do gem 'mini_magick', '~> 5.0.1' end -# Optional Markdown support -group :markdown do - gem 'redcarpet', '~> 3.6.0' -end - # Optional CommonMark support, not for JRuby group :common_mark do gem "commonmarker", '~> 0.23.8' diff --git a/app/assets/javascripts/jstoolbar/markdown.js b/app/assets/javascripts/jstoolbar/markdown.js deleted file mode 100644 index 62ad4674a..000000000 --- a/app/assets/javascripts/jstoolbar/markdown.js +++ /dev/null @@ -1,230 +0,0 @@ -/** - * This file is part of DotClear. - * Copyright (c) 2005 Nicolas Martin & Olivier Meunier and contributors. All rights reserved. - * This code is released under the GNU General Public License. - * - * Modified by JP LANG for markdown formatting - */ - -// strong -jsToolBar.prototype.elements.strong = { - type: 'button', - title: 'Strong', - shortcut: 'b', - fn: { - wiki: function() { this.singleTag('**') } - } -} - -// em -jsToolBar.prototype.elements.em = { - type: 'button', - title: 'Italic', - shortcut: 'i', - fn: { - wiki: function() { this.singleTag("*") } - } -} - -// ins -jsToolBar.prototype.elements.ins = { - type: 'button', - title: 'Underline', - shortcut: 'u', - fn: { - wiki: function() { this.singleTag('_') } - } -} - -// del -jsToolBar.prototype.elements.del = { - type: 'button', - title: 'Deleted', - fn: { - wiki: function() { this.singleTag('~~') } - } -} - -// code -jsToolBar.prototype.elements.code = { - type: 'button', - title: 'Code', - fn: { - wiki: function() { this.singleTag('`') } - } -} - -// spacer -jsToolBar.prototype.elements.space1 = {type: 'space'} - -// headings -jsToolBar.prototype.elements.h1 = { - type: 'button', - title: 'Heading 1', - fn: { - wiki: function() { - this.encloseLineSelection('# ', '',function(str) { - str = str.replace(/^#+\s+/, '') - return str; - }); - } - } -} -jsToolBar.prototype.elements.h2 = { - type: 'button', - title: 'Heading 2', - fn: { - wiki: function() { - this.encloseLineSelection('## ', '',function(str) { - str = str.replace(/^#+\s+/, '') - return str; - }); - } - } -} -jsToolBar.prototype.elements.h3 = { - type: 'button', - title: 'Heading 3', - fn: { - wiki: function() { - this.encloseLineSelection('### ', '',function(str) { - str = str.replace(/^#+\s+/, '') - return str; - }); - } - } -} - -// spacer -jsToolBar.prototype.elements.space2 = {type: 'space'} - -// ul -jsToolBar.prototype.elements.ul = { - type: 'button', - title: 'Unordered list', - fn: { - wiki: function() { - this.encloseLineSelection('','',function(str) { - str = str.replace(/\r/g,''); - return str.replace(/(\n|^)[#-]?\s*/g,"$1* "); - }); - } - } -} - -// ol -jsToolBar.prototype.elements.ol = { - type: 'button', - title: 'Ordered list', - fn: { - wiki: function() { - this.encloseLineSelection('','',function(str) { - str = str.replace(/\r/g,''); - return str.replace(/(\n|^)[*-]?\s*/g,"$11. "); - }); - } - } -} - -// spacer -jsToolBar.prototype.elements.space3 = {type: 'space'} - -// bq -jsToolBar.prototype.elements.bq = { - type: 'button', - title: 'Quote', - fn: { - wiki: function() { - this.encloseLineSelection('','',function(str) { - str = str.replace(/\r/g,''); - return str.replace(/(\n|^)( *)([^\n]*)/g,"$1> $2$3"); - }); - } - } -} - -// unbq -jsToolBar.prototype.elements.unbq = { - type: 'button', - title: 'Unquote', - fn: { - wiki: function() { - this.encloseLineSelection('','',function(str) { - str = str.replace(/\r/g,''); - return str.replace(/(\n|^) *(> ?)?( *)([^\n]*)/g,"$1$3$4"); - }); - } - } -} - -// table -jsToolBar.prototype.elements.table = { - type: 'button', - title: 'Table', - fn: { - wiki: function() { - var This = this; - this.tableMenu(function(cols, rowCount){ - This.encloseLineSelection( - '|'+cols.join(' |')+' |\n' + // header - Array(cols.length+1).join('|--')+'|\n' + // second line - Array(rowCount+1).join(Array(cols.length+1).join('| ')+'|\n') // cells - ); - }); - } - } -} - -// pre -jsToolBar.prototype.elements.pre = { - type: 'button', - title: 'Preformatted text', - fn: { - wiki: function() { this.encloseLineSelection('```\n', '\n```') } - } -} - -// Code highlighting -jsToolBar.prototype.elements.precode = { - type: 'button', - title: 'Highlighted code', - fn: { - wiki: function() { - var This = this; - this.precodeMenu(function(lang){ - This.encloseLineSelection('``` ' + lang + '\n', '\n```\n'); - }); - } - } -} - -// spacer -jsToolBar.prototype.elements.space4 = {type: 'space'} - -// wiki page -jsToolBar.prototype.elements.link = { - type: 'button', - title: 'Wiki link', - fn: { - wiki: function() { this.encloseSelection("[[", "]]") } - } -} -// image -jsToolBar.prototype.elements.img = { - type: 'button', - title: 'Image', - fn: { - wiki: function() { this.encloseSelection("![](", ")") } - } -} - -// spacer -jsToolBar.prototype.elements.space5 = {type: 'space'} -// help -jsToolBar.prototype.elements.help = { - type: 'button', - title: 'Help', - fn: { - wiki: function() { window.open(this.help_link, '', 'resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes') } - } -} diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index dd639c0c4..989d88194 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1930,16 +1930,6 @@ module ApplicationHelper ) end - # Returns the markdown formatter: markdown or common_mark - # ToDo: Remove this when markdown will be removed - def markdown_formatter - if Setting.text_formatting == "markdown" - "markdown" - else - "common_mark" - end - end - private def wiki_helper diff --git a/app/helpers/attachments_helper.rb b/app/helpers/attachments_helper.rb index 785f833c6..696b0eac5 100644 --- a/app/helpers/attachments_helper.rb +++ b/app/helpers/attachments_helper.rb @@ -91,7 +91,7 @@ module AttachmentsHelper def render_file_content(attachment, content) if attachment.is_markdown? - render :partial => 'common/markup', :locals => {:markup_text_formatting => markdown_formatter, :markup_text => content} + render :partial => 'common/markup', :locals => {:markup_text_formatting => 'common_mark', :markup_text => content} elsif attachment.is_textile? render :partial => 'common/markup', :locals => {:markup_text_formatting => 'textile', :markup_text => content} else diff --git a/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 4ea1da594..000000000 --- a/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,341 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki formatting (Markdown)

- - - -

Links

- -

Redmine links

- -

Redmine allows hyperlinking between resources (issues, changesets, wiki pages...) from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- -

Links to other resources:

- - - - - - - - - - - - - - - - - - - - - -

Escaping:

- - - - -

External links

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

displays: https://www.redmine.org,

- -

If you want to display a specific text instead of the URL, you can use the standard markdown syntax:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

displays: Redmine web site

- - -

Text formatting

- - -

For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See https://daringfireball.net/projects/markdown/syntax for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

- -

Font style

- -
-* **bold**
-* *Italic*
-* ***bold italic***
-* _underline_
-* ~~strike-through~~
-
- -

Display:

- - - -

Inline images

- - - -

Headings

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.

- - -

Blockquotes

- -

Start the paragraph with >

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

Table of content

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Horizontal Rule

- -
----
-
- -

Macros

- -

Redmine has the following 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)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Code highlighting

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

- -
-``` 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
-
- - diff --git a/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_markdown.html.erb deleted file mode 100644 index 35c485737..000000000 --- a/app/views/help/wiki_syntax/markdown/bg/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wiki formatting -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki Syntax Quick Reference (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Font Styles (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Strong" }) %>**Strong**Strong
<%= image_tag("jstoolbar/italic.svg", { alt: "Italic" }) %>*Italic*Italic
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_Underline_Underline
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Deleted" }) %>~~Deleted~~Deleted
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`Inline Code`Inline Code
```
 lines
 of code
```
-
- lines
- of code
-
-
Highlighted code (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Вграден код" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Lists
<%= image_tag("jstoolbar/list.svg", { alt: "Unordered list" }) %>* Item 1
  * Sub
* Item 2
  • Item 1
    • Sub
  • Item 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Ordered list" }) %>1. Item 1
   1. Sub
2. Item 2
  1. Item 1
    1. Sub
  2. Item 2
Headings (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># Title 1

Title 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## Title 2

Title 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### Title 3

Title 3

Links (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine links (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Wiki page]]Wiki page
Issue #12Issue #12
##12Bug #12: The issue subject
Revision r43Revision r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Inline images (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](image_url)
![](attached_image)
Tables
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

More Information

- - - diff --git a/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 4ea1da594..000000000 --- a/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,341 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki formatting (Markdown)

- - - -

Links

- -

Redmine links

- -

Redmine allows hyperlinking between resources (issues, changesets, wiki pages...) from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- -

Links to other resources:

- - - - - - - - - - - - - - - - - - - - - -

Escaping:

- - - - -

External links

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

displays: https://www.redmine.org,

- -

If you want to display a specific text instead of the URL, you can use the standard markdown syntax:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

displays: Redmine web site

- - -

Text formatting

- - -

For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See https://daringfireball.net/projects/markdown/syntax for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

- -

Font style

- -
-* **bold**
-* *Italic*
-* ***bold italic***
-* _underline_
-* ~~strike-through~~
-
- -

Display:

- - - -

Inline images

- - - -

Headings

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.

- - -

Blockquotes

- -

Start the paragraph with >

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

Table of content

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Horizontal Rule

- -
----
-
- -

Macros

- -

Redmine has the following 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)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Code highlighting

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

- -
-``` 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
-
- - diff --git a/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_markdown.html.erb deleted file mode 100644 index 117c71224..000000000 --- a/app/views/help/wiki_syntax/markdown/ca/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Format de la Wiki -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Guia rapida de la Sintaxis de la Wiki (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Font Styles (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Negreta" }) %>**Negreta**Negreta
<%= image_tag("jstoolbar/italic.svg", { alt: "Cursiva" }) %>*Cursiva*Cursiva
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_Underline_Underline
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Eliminat" }) %>~~Eliminat~~Eliminat
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Codi en línia" }) %>`Codi en línia`Codi en línia
```
 linies
 de codi
```
-
- linies
- de codi
-
-
Highlighted code (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Llistes
<%= image_tag("jstoolbar/list.svg", { alt: "Llista desordenada" }) %>* Article 1
  * Sub
* Article 2
  • Article 1
    • Sub
  • Article 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Llista Ordenada" }) %>1. Article 1
   1. Sub
2. Article 2
  1. Article 1
    1. Sub
  2. Article 2
Capçaleres (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Encapçament 1" }) %># Títol 1

Títol 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Encapçament 2" }) %>## Títol 2

Títol 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Encapçament 3" }) %>### Títol 3

Títol 3

Links (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine links (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link a la pagina Wiki" }) %>[[Pagina Wiki]]Pagina Wiki
Assumpte #12Assumpte #12
##12Bug #12: The issue subject
Revisió r43Revisió r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Imatges (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Imatge" }) %>![](imatge_url)
![](imatge_adjunta)
Taules
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

Més informació

- - - diff --git a/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 25b7b6b92..000000000 --- a/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,338 +0,0 @@ - - - -Formátování Wiki v Redminu - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Formátování Wiki (Markdown)

- - - -

Odkazy

- -

Odkazy Redmine

- -

Redmine umožňuje hypertextové odkazy mezi jednotlivými zdroji (úkoly, revize, wiki stránky...) kdekoli, kde je použito Wiki formátování.

- - -

Odkazy Wiki:

- - - -

Můžete se také odkazovat na Wiki stránky jiného projektu:

- - - -

Odkazy na Wiki stránky jsou zobrazeny červeně v případě, že odkazovaná stránka dosud neexistuje, např.: Neexistující stránka.

- -

Odkazy na další zdroje:

- - - - - - - - - - - - - - - - - - - - - -

Escape sekvence:

- - - -

Externí odkazy

- -

URL (začínající: www, http, https, ftp, ftps, sftp a sftps) a e-mailové adresy jsou automaticky převedeny na klikací odkazy:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

zobrazí: https://www.redmine.org,

- -

Jestliže chcete zobrazit určitý text místo URL, můžete použít standardní syntaxi Textile:

- -
-"Webová stránka Redmine":https://www.redmine.org
-
- -

zobrazí: Webová stránka Redmine

- - -

Formátování textu

- - -

Pro nadpisy, tučný text, tabulky a seznamy, Redmine podporuje syntaxi Markdown. Podívejte se na https://daringfireball.net/projects/markdown/syntax pro informace o využití těchto vlastností. Několik příkladů je uvedeno níže, ale Markdown toho dokáže mnohem víc.

- -

Styly písma

- -
-* **tučný**
-* *kurzíva*
-* ***tučná kurzíva***
-* ~~přeškrtnutý~~
-
- -

Zobrazí:

- - - -

Vnořené obrázky

- - - -

Nadpisy

- -
-# Nadpis 1. úrovně
-## Nadpis 2. úrovně
-### Nadpis 3. úrovně
-
- -

Redmine přiřadí kotvu ke každému nadpisu, takže se na ně lze odkazovat pomocí "#Nadpis", "#Podnadpis" atd.

- - -

Odstavce

- -

Začněte odstavec s >

- -
-> Rails je framework pro vývoj webových aplikací podle modelu Model-View-Control.
-Vše, co je potřeba, je databázový a webový server.
-
- -

Zobrazí:

- -
-

Rails je framework pro vývoj webových aplikací podle modelu Model-View-Control.
Vše, co je potřeba, je databázový a webový server.

-
- - -

Obsah

- -
-{{toc}} => obsah zarovnaný doleva
-{{>toc}} => obsah zarovnaný doprava
-
- -

Vodorovná čára

- -
----
-
- -

Macros

- -

Redmine obsahuje následující vestavěná makra:

- -

-

-
hello_world
-

Jednoduché makro.

- -
macro_list
-

Zobrazí seznam všech dostupných maker, včetně jejich popisu, existuje-li.

- -
child_pages
-

Zobrazí seznam dětských stránek. Bez parametrů zobrazí dětské stránky aktuální wiki stránky. Např.:

-
{{child_pages}} -- lze použít pouze z wiki stránky
-{{child_pages(depth=2)}} -- zobrazí dětské stránky pouze do 2. úrovně
- -
include
-

Vloží Wiki stránku. Např.:

-
{{include(Foo)}}
-

or to include a page of a specific project wiki:

-
{{include(projectname:Foo)}}
- -
collapse
-

Vloží sbalený blok textu. Např.:

-
{{collapse(Zobrazit detaily...)
-Toto je blok textu, který je sbalený.
-Pro rozbalení klikněte na odkaz.
-}}
- -
thumbnail
-

Zobrazí klikací náhled obrázku. Např.:

-
{{thumbnail(image.png)}}
-{{thumbnail(image.png, size=300, title=Thumbnail)}}
- -
issue
-

Vloží odkaz na úkol s volitelným textem. Např.:

-
{{issue(123)}}                              -- Issue #123: Rozšířené možnosti maker
-{{issue(123, project=true)}}                -- Andromeda - Issue #123: Rozšířené možnosti maker
-{{issue(123, tracker=false)}}               -- #123: Rozšířené možnosti maker
-{{issue(123, subject=false, project=true)}} -- Andromeda - Úkol #123
-
-

- -

Zvýrazňování kódu

- -

Výchozí zvýrazňování kódu závisí na Rouge, zvýrazňovači kódu napsanému v Ruby. Rouge podporuje mnoho běžně používaných jazyků, jako jsou c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) - jména v závorkách jsou aliasy. Podívejte se, prosím, na seznam jazyků poporovaných zvýrazňovačem kódu Redmine.

- -

Kód můžete na stránce zvýraznit pomocí následující syntaxe (záleží na velikosti písma jazyku nebo aliasu):

- -
-``` ruby
-  Zde vložte Váš kód.
-```
-
- -

Např:

- -
# The Greeter class
-class Greeter
-  def initialize(name)
-    @name = name.capitalize
-  end
-
-  def salute
-    puts "Ahoj #{@name}!"
-  end
-end
-
- - diff --git a/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_markdown.html.erb deleted file mode 100644 index 64053f511..000000000 --- a/app/views/help/wiki_syntax/markdown/cs/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wiki formátování -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Syntaxe Wiki - rychlý náhled

(Markdown) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Styly písma (" target="_blank">více)
<%= image_tag("jstoolbar/bold.svg", { alt: "tučný" }) %>**tučný**tučný
<%= image_tag("jstoolbar/italic.svg", { alt: "kurzíva" }) %>*kurzíva*kurzíva
<%= image_tag("jstoolbar/underline.svg", { alt: "podtržený" }) %>_podtržený_podtržený
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "smazaný" }) %>~~přeškrtnutý~~Přeškrtnutý
<%= image_tag("jstoolbar/letter-c.svg", { alt: "vnořený kód" }) %>`vnořený kód`vnořený kód
```
 Å™Ã¡dky
 kódu
```
-
- řádky
- kódu
-
-
Zvýrazněný kód (" target="_blank">více | podporované jazyky)
<%= image_tag("jstoolbar/code.svg", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Ahoj'
end
```
-
3.times do
-  puts 'Ahoj'
-end
-
-
Seznamy
<%= image_tag("jstoolbar/list.svg", { alt: "Nesetříděný seznam" }) %>* Položka 1
  * Pod
* Položka 2
  • Položka 1
    • Pod
  • Položka 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Setříděný seznam" }) %>1. Položka 1
   1. Pod
2. Položka 2
  1. Položka 1
    1. Pod
  2. Položka 2
Nadpisy (" target="_blank">více)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># Nadpis 1

Nadpis 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## Nadpis 2

Nadpis 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### Nadpis 3

Nadpis 3

Odkazy (" target="_blank">more)
http://foo.barhttp://foo.bar
[Odkaz](http://foo.bar)Foo
Redmine odkazy (" target="_blank">více)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Wiki stránka]]Wiki stránka
Úkol #12Úkol #12
##12Úkol #12: Předmět úkolu
Revize r43Revize r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Vnořené obrázky (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Obrázek" }) %>![](url_obrázku)
![](vnořený_obrázek)
Tabulky
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

Více informací

- - - diff --git a/app/views/help/wiki_syntax/markdown/de/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/de/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index bca596409..000000000 --- a/app/views/help/wiki_syntax/markdown/de/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,342 +0,0 @@ - - - -Redmine Wiki-Formatierung (Markdown) detailliert - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Redmine Wiki-Formatierung (Markdown) detailliert

- - - -

Links

- -

Redmine interne Links

- -

Redmine erlaubt Hyperlinks zwischen Ressourcen (Tickets, Änderungssätze, Wiki-Seiten...) überall dort, wo Wiki-Formatierung verwendet wird.

- - -

Wiki-Links:

- - - -

Sie können auch auf Seiten eines anderen Projekt-Wikis verlinken:

- - - -

Wiki-Links werden rot angezeigt, wenn die Seite noch nicht existiert, zB: Nicht vorhandene Seite.

- -

Links zu anderen Ressourcen:

- - - - - - - - - - - - - - - - - - - - - -

Link Unterdrückung:

- - - - -

Externe Links

- -

URLs (beginnend mit: www, http, https, ftp, ftps, sftp und sftps) und E-Mail-Adressen werden automatisch in anklickbare Links umgewandelt:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

Anzeige: https://www.redmine.org,

- -

Wenn Sie anstelle der URL einen bestimmten Text anzeigen möchten, können Sie die Standard-Markdown-Syntax verwenden:

- -
-[Redmine Webseite](https://www.redmine.org)
-
- -

Anzeige: Redmine Webseite

- - -

Textformatierung

- - -

Für Dinge wie Überschriften, Fettdruck, Tabellen, Listen unterstützt Redmine die Markdown-Syntax. Informationen zur Verwendung dieser Funktionen https://daringfireball.net/projects/markdown/syntax for information on using any of these features. Ein paar Beispiele sind unten enthalten, aber die Engine unterstützt noch viel mehr Funktionen.

- -

Schriftstil

- -
-* **Fett gedruckt**
-* *kursiv*
-* ***Fett Kursiv***
-* _unterstrichen_
-* ~~durchgestrichen~~
-
- -

Display:

- - - -

Eingebettete Bilder

- - - -

Überschriften

- -
-# Überschrift
-## Untertitel
-### untergeordneter Untertitel
-
- -

Redmine weist jeder dieser Überschriften einen Anker zu, sodass Sie mit „#Überschrift“, „#Untertitel“ usw. darauf verlinken können.

- - -

Blockzitat

- -

Beginnen Sie den Absatz mit >

- -
-> Rails ist ein Full-Stack-Framework zur Entwicklung datenbankgestützter Webanwendungen nach dem Model-View-Control-Muster.
-Um live zu gehen, müssen Sie lediglich eine Datenbank und einen Webserver hinzufügen.
-
- -

Anzeige:

- -
-

Rails ist ein Full-Stack-Framework zur Entwicklung datenbankgestützter Webanwendungen nach dem Model-View-Control-Muster.
Um live zu gehen, müssen Sie lediglich eine Datenbank und einen Webserver hinzufügen.

-
- -

Inhaltsverzeichnis

- -
-{{toc}} => linksbündiges Inhaltsverzeichnis
-{{>toc}} => rechtsbündiges Inhaltsverzeichnis
-
- -

Horizontale Linie

- -
----
-
-

Anzeige

-
- -

Makros

- -

Redmine hat folgende, eingebauten Makros:

- -

-

-
hello_world
-

Beispielmakro

- -
macro_list
-

Zeigt eine Liste aller verfügbaren Makros an, einschließlich Beschreibung, falls verfügbar.

- -
child_pages
-

Zeigt eine Liste der untergeordneten Seiten an. Ohne Argument zeigt es die untergeordneten Seiten der aktuellen Wiki-Seite an. Beispiele:

-
{{child_pages}} -- kann nur von einer Wiki-Seite aus verwendet werden
-{{child_pages(depth=2)}} -- nur Verschachtelung mit 2 Ebenen anzeigen
- -
include
-

Fügt eine Wiki-Seite hinzu. Beispiel:

-
{{include(Foo)}}
-

oder um eine Seite eines bestimmten Projekt-Wikis einzufügen:

-
{{include(projectname:Foo)}}
- -
collapse
-

Einfügung von reduzierten Textblöcken. Beispiel:

-
{{collapse(Details anzeigen...)
-Dies ist ein Textblock, der standardmäßig reduziert ist.
-Es kann durch Klicken auf einen Link erweitert werden.
-}}
- -
thumbnail
-

Zeigt eine anklickbare Miniaturansicht eines angehängten Bildes an. Beispiele:

-
{{thumbnail(image.png)}}
-{{thumbnail(image.png, size=300, title=Thumbnail)}}
- -
issue
-

Fügt einen Link zu einem Ticket mit flexiblem Text ein. Beispiele:

-
{{issue(123)}}                              -- Fehler #123: Makrofunktionen verbessern
-{{issue(123, project=true)}}                -- Andromeda – Fehler #123: Makrofähigkeiten verbessern
-{{issue(123, tracker=false)}}               -- #123: Makrofähigkeiten verbessern
-{{issue(123, subject=false, project=true)}} -- Andromeda - Fehler #123
-
-

- -

Code-Hervorhebung

- -

Die standardmäßige Code-Hervorhebung basiert auf Rouge, einem reinen Ruby-Code-Highlighter. Rouge unterstützt viele häufig verwendete Sprachen wie c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml und yaml (yml) - die Namen in Klammern sind Aliase. Bitte beachten Sie die Liste der Sprachen, die vom Redmine-Code-Highlighter unterstützt werden.

- -

Sie können Code an jeder Stelle hervorheben, die Wiki-Formatierung mit dieser Syntax unterstützt (beachten Sie, dass beim Sprachnamen oder Alias ​​die Groß-/Kleinschreibung nicht beachtet wird):

- -
-``` ruby
-    Geben Sie hier Ihren Code ein.
-```
-
- -

Beispiel:

- -
# Die Greeter-Klasse
-class Greeter
-  def initialize(name)
-    @name = name.capitalize
-  end
-
-  def salute
-    puts "Hallo #{@name}!"
-  end
-end
-
- - diff --git a/app/views/help/wiki_syntax/markdown/de/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/de/wiki_syntax_markdown.html.erb deleted file mode 100644 index 372e2d4cd..000000000 --- a/app/views/help/wiki_syntax/markdown/de/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wikiformatierung -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki Syntax Schnellreferenz (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Schriftarten (" target="_blank">mehr)
<%= image_tag("jstoolbar/bold.svg", { alt: "Fett" }) %>**Fett**Fett
<%= image_tag("jstoolbar/italic.svg", { alt: "Kursiv" }) %>*Kursiv*Kursiv
<%= image_tag("jstoolbar/underline.svg", { alt: "Unterstrichen" }) %>_Unterstrichen_Unterstrichen
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Durchgestrichen" }) %>~~Durchgestrichen~~Durchgestrichen
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`Inline Code`Inline Code
```
 vorformatierte
 Textzeilen
```
-
- vorformatierte
- Textzeilen
-
-
Hervorgehobener Programmcode (" target="_blank">mehr | Unterstützte Sprachen)
<%= image_tag("jstoolbar/code.svg", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Listen
<%= image_tag("jstoolbar/list.svg", { alt: "Ungeordnete Liste" }) %>* Element 1
  * Sub
* Element 2
  • Element 1
    • Sub
  • Element 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Geordnete Liste" }) %>1. Element 1
   1. Sub
2. Element 2
  1. Element 1
    1. Sub
  2. Element 2
Überschriften (" target="_blank">mehr)
<%= image_tag("jstoolbar/h1.svg", { alt: "Überschrift 1" }) %># Titel 1

Titel 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Überschrift 2" }) %>## Titel 2

Titel 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Überschrift 3" }) %>### Titel 3

Titel 3

Externe Links (" target="_blank">mehr)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine interne Links (" target="_blank">mehr)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link zu einer Wiki Seite" }) %>[[Wiki Seite]]Wiki Seite
Ticket #12Ticket #12
##12Fehler #12: Titel der Aufgabe
Revision r43Revision r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
eingebettete Bilder (" target="_blank">mehr)
<%= image_tag("jstoolbar/image.svg", { alt: "Bild" }) %>![](URL_zu_dem_Bild)
![](angehängtes_Bild)
Tabellen
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

Weitere Informationen

- - - diff --git a/app/views/help/wiki_syntax/markdown/en/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/en/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 4ea1da594..000000000 --- a/app/views/help/wiki_syntax/markdown/en/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,341 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki formatting (Markdown)

- - - -

Links

- -

Redmine links

- -

Redmine allows hyperlinking between resources (issues, changesets, wiki pages...) from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- -

Links to other resources:

- - - - - - - - - - - - - - - - - - - - - -

Escaping:

- - - - -

External links

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

displays: https://www.redmine.org,

- -

If you want to display a specific text instead of the URL, you can use the standard markdown syntax:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

displays: Redmine web site

- - -

Text formatting

- - -

For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See https://daringfireball.net/projects/markdown/syntax for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

- -

Font style

- -
-* **bold**
-* *Italic*
-* ***bold italic***
-* _underline_
-* ~~strike-through~~
-
- -

Display:

- - - -

Inline images

- - - -

Headings

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.

- - -

Blockquotes

- -

Start the paragraph with >

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

Table of content

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Horizontal Rule

- -
----
-
- -

Macros

- -

Redmine has the following 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)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Code highlighting

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

- -
-``` 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
-
- - diff --git a/app/views/help/wiki_syntax/markdown/en/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/en/wiki_syntax_markdown.html.erb deleted file mode 100644 index c5f2b76df..000000000 --- a/app/views/help/wiki_syntax/markdown/en/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wiki formatting -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki Syntax Quick Reference (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Font Styles (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Strong" }) %>**Strong**Strong
<%= image_tag("jstoolbar/italic.svg", { alt: "Italic" }) %>*Italic*Italic
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_Underline_Underline
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Deleted" }) %>~~Deleted~~Deleted
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`Inline Code`Inline Code
```
 lines
 of code
```
-
- lines
- of code
-
-
Highlighted code (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Lists
<%= image_tag("jstoolbar/list.svg", { alt: "Unordered list" }) %>* Item 1
  * Sub
* Item 2
  • Item 1
    • Sub
  • Item 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Ordered list" }) %>1. Item 1
   1. Sub
2. Item 2
  1. Item 1
    1. Sub
  2. Item 2
Headings (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># Title 1

Title 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## Title 2

Title 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### Title 3

Title 3

Links (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine links (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Wiki page]]Wiki page
Issue #12Issue #12
##12Bug #12: The issue subject
Revision r43Revision r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Inline images (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](image_url)
![](attached_image)
Tables
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

More Information

- - - diff --git a/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 4ea1da594..000000000 --- a/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,341 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki formatting (Markdown)

- - - -

Links

- -

Redmine links

- -

Redmine allows hyperlinking between resources (issues, changesets, wiki pages...) from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- -

Links to other resources:

- - - - - - - - - - - - - - - - - - - - - -

Escaping:

- - - - -

External links

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

displays: https://www.redmine.org,

- -

If you want to display a specific text instead of the URL, you can use the standard markdown syntax:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

displays: Redmine web site

- - -

Text formatting

- - -

For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See https://daringfireball.net/projects/markdown/syntax for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

- -

Font style

- -
-* **bold**
-* *Italic*
-* ***bold italic***
-* _underline_
-* ~~strike-through~~
-
- -

Display:

- - - -

Inline images

- - - -

Headings

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.

- - -

Blockquotes

- -

Start the paragraph with >

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

Table of content

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Horizontal Rule

- -
----
-
- -

Macros

- -

Redmine has the following 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)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Code highlighting

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

- -
-``` 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
-
- - diff --git a/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_markdown.html.erb deleted file mode 100644 index e3df370dc..000000000 --- a/app/views/help/wiki_syntax/markdown/es-pa/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wiki formatting -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki Syntax Quick Reference (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Font Styles (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Strong" }) %>**Strong**Strong
<%= image_tag("jstoolbar/italic.svg", { alt: "Italic" }) %>*Italic*Italic
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_Underline_Underline
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Deleted" }) %>~~Deleted~~Deleted
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`Inline Code`Inline Code
```
 lines
 of code
```
-
- lines
- of code
-
-
Highlighted code (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Código resaltado" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Lists
<%= image_tag("jstoolbar/list.svg", { alt: "Unordered list" }) %>* Item 1
  * Sub
* Item 2
  • Item 1
    • Sub
  • Item 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Ordered list" }) %>1. Item 1
   1. Sub
2. Item 2
  1. Item 1
    1. Sub
  2. Item 2
Headings (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># Title 1

Title 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## Title 2

Title 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### Title 3

Title 3

Links (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine links (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Wiki page]]Wiki page
Issue #12Issue #12
##12Bug #12: The issue subject
Revision r43Revision r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Inline images (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](image_url)
![](attached_image)
Tables
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

More Information

- - - diff --git a/app/views/help/wiki_syntax/markdown/es/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/es/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 4ea1da594..000000000 --- a/app/views/help/wiki_syntax/markdown/es/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,341 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki formatting (Markdown)

- - - -

Links

- -

Redmine links

- -

Redmine allows hyperlinking between resources (issues, changesets, wiki pages...) from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- -

Links to other resources:

- - - - - - - - - - - - - - - - - - - - - -

Escaping:

- - - - -

External links

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

displays: https://www.redmine.org,

- -

If you want to display a specific text instead of the URL, you can use the standard markdown syntax:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

displays: Redmine web site

- - -

Text formatting

- - -

For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See https://daringfireball.net/projects/markdown/syntax for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

- -

Font style

- -
-* **bold**
-* *Italic*
-* ***bold italic***
-* _underline_
-* ~~strike-through~~
-
- -

Display:

- - - -

Inline images

- - - -

Headings

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.

- - -

Blockquotes

- -

Start the paragraph with >

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

Table of content

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Horizontal Rule

- -
----
-
- -

Macros

- -

Redmine has the following 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)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Code highlighting

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

- -
-``` 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
-
- - diff --git a/app/views/help/wiki_syntax/markdown/es/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/es/wiki_syntax_markdown.html.erb deleted file mode 100644 index e3df370dc..000000000 --- a/app/views/help/wiki_syntax/markdown/es/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wiki formatting -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki Syntax Quick Reference (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Font Styles (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Strong" }) %>**Strong**Strong
<%= image_tag("jstoolbar/italic.svg", { alt: "Italic" }) %>*Italic*Italic
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_Underline_Underline
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Deleted" }) %>~~Deleted~~Deleted
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`Inline Code`Inline Code
```
 lines
 of code
```
-
- lines
- of code
-
-
Highlighted code (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Código resaltado" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Lists
<%= image_tag("jstoolbar/list.svg", { alt: "Unordered list" }) %>* Item 1
  * Sub
* Item 2
  • Item 1
    • Sub
  • Item 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Ordered list" }) %>1. Item 1
   1. Sub
2. Item 2
  1. Item 1
    1. Sub
  2. Item 2
Headings (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># Title 1

Title 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## Title 2

Title 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### Title 3

Title 3

Links (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine links (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Wiki page]]Wiki page
Issue #12Issue #12
##12Bug #12: The issue subject
Revision r43Revision r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Inline images (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](image_url)
![](attached_image)
Tables
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

More Information

- - - diff --git a/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 4ea1da594..000000000 --- a/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,341 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki formatting (Markdown)

- - - -

Links

- -

Redmine links

- -

Redmine allows hyperlinking between resources (issues, changesets, wiki pages...) from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- -

Links to other resources:

- - - - - - - - - - - - - - - - - - - - - -

Escaping:

- - - - -

External links

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

displays: https://www.redmine.org,

- -

If you want to display a specific text instead of the URL, you can use the standard markdown syntax:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

displays: Redmine web site

- - -

Text formatting

- - -

For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See https://daringfireball.net/projects/markdown/syntax for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

- -

Font style

- -
-* **bold**
-* *Italic*
-* ***bold italic***
-* _underline_
-* ~~strike-through~~
-
- -

Display:

- - - -

Inline images

- - - -

Headings

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.

- - -

Blockquotes

- -

Start the paragraph with >

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

Table of content

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Horizontal Rule

- -
----
-
- -

Macros

- -

Redmine has the following 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)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Code highlighting

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

- -
-``` 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
-
- - diff --git a/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_markdown.html.erb deleted file mode 100644 index 0e2485937..000000000 --- a/app/views/help/wiki_syntax/markdown/fr/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wiki formatting -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki Syntax Quick Reference (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Font Styles (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Strong" }) %>**Strong**Strong
<%= image_tag("jstoolbar/italic.svg", { alt: "Italic" }) %>*Italic*Italic
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_Underline_Underline
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Deleted" }) %>~~Deleted~~Deleted
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`Inline Code`Inline Code
```
 lines
 of code
```
-
- lines
- of code
-
-
Highlighted code (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Code colorisé" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Lists
<%= image_tag("jstoolbar/list.svg", { alt: "Unordered list" }) %>* Item 1
  * Sub
* Item 2
  • Item 1
    • Sub
  • Item 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Ordered list" }) %>1. Item 1
   1. Sub
2. Item 2
  1. Item 1
    1. Sub
  2. Item 2
Headings (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># Title 1

Title 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## Title 2

Title 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### Title 3

Title 3

Links (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine links (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Wiki page]]Wiki page
Issue #12Issue #12
##12Bug #12: The issue subject
Revision r43Revision r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Inline images (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](image_url)
![](attached_image)
Tables
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

More Information

- - - diff --git a/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 7661bcf26..000000000 --- a/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,340 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki formatting (Markdown)

- - - -

Links

- -

Redmine links

- -

Redmine allows hyperlinking between resources (issues, changesets, wiki pages...) from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- -

Links to other resources:

- - - - - - - - - - - - - - - - - - - - - -

Escaping:

- - - - -

External links

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

displays: https://www.redmine.org,

- -

If you want to display a specific text instead of the URL, you can use the standard markdown syntax:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

displays: Redmine web site

- - -

Text formatting

- - -

For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See https://daringfireball.net/projects/markdown/syntax for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

- -

Font style

- -
-* **bold**
-* *Italic*
-* ***bold italic***
-* _underline_
-* ~~strike-through~~
-
- -

Display:

- - - -

Inline images

- - - -

Headings

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.

- - -

Blockquotes

- -

Start the paragraph with >

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

Table of content

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Horizontal Rule

- -
----
-
- -

Macros

- -

Redmine has the following 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)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Code highlighting

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

- -
-``` 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
-
- - diff --git a/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_markdown.html.erb deleted file mode 100644 index e3df370dc..000000000 --- a/app/views/help/wiki_syntax/markdown/gl/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wiki formatting -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki Syntax Quick Reference (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Font Styles (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Strong" }) %>**Strong**Strong
<%= image_tag("jstoolbar/italic.svg", { alt: "Italic" }) %>*Italic*Italic
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_Underline_Underline
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Deleted" }) %>~~Deleted~~Deleted
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`Inline Code`Inline Code
```
 lines
 of code
```
-
- lines
- of code
-
-
Highlighted code (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Código resaltado" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Lists
<%= image_tag("jstoolbar/list.svg", { alt: "Unordered list" }) %>* Item 1
  * Sub
* Item 2
  • Item 1
    • Sub
  • Item 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Ordered list" }) %>1. Item 1
   1. Sub
2. Item 2
  1. Item 1
    1. Sub
  2. Item 2
Headings (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># Title 1

Title 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## Title 2

Title 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### Title 3

Title 3

Links (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine links (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Wiki page]]Wiki page
Issue #12Issue #12
##12Bug #12: The issue subject
Revision r43Revision r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Inline images (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](image_url)
![](attached_image)
Tables
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

More Information

- - - diff --git a/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index f3e9319ad..000000000 --- a/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,339 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki記法 (Markdown)

- - - -

Links

- -

Redmine内のリンク

- -

RedmineはWiki記法が使える箇所のどこからでも、チケット・チェンジセット・Wikiページなどのリソースへのリンクができます。

- - -

Wikiへのリンク:

- - - -

別のプロジェクトのwikiへのリンクも可能です:

- - - -

存在しないwikiページへのリンクは赤で表示されます。 例: Nonexistent page.

- -

そのほかのリソースへのリンク:

- - - - - - - - - - - - - - - - - - - - - -

エスケープ:

- - - - -

外部リンク

- -

URL(starting with: www, http, https, ftp, ftps, sftp and sftps)とメールアドレスは自動的にリンクになります:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

上記記述の表示例です: https://www.redmine.org,

- -

URLのかわりに別のテキストを表示させたい場合は、通常のMarkdown記法が利用できます:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

上記記述の表示例です: Redmine web site

- - -

テキストの書式

- - -

見出し、太字、テーブル、リスト等は、RedmineはMarkdownでの記述に対応しています。Markdownの詳細は https://daringfireball.net/projects/markdown/syntax を参照してください。Markdownの一例を以下に示しますが、実際にはここで取り上げた以外の記法にも対応しています。

- -

文字の書式

- -
-* **太字**
-* *斜体*
-* ***太字で斜体***
-* ~~取り消し線~~
-
- -

表示例:

- - - -

画像

- - - -

見出し

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmineは見出しにアンカーを設定するので、"#Heading", "#Subheading"のように記述して見出しへのリンクが行えます。

- - -

引用

- -

段落を > で開始してください。

- -
-> 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.
-
- -

表示例:

- -
-

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.

-
- - -

目次

- -
-{{toc}} => 目次(左寄せ)
-{{>toc}} => 目次(右寄せ)
-
- -

区切り線

- -
----
-
- -

マクロ

- -

Redmineには以下の組み込みマクロが用意されています:

- -

-

-
hello_world
-

サンプルのマクロです。

- -
macro_list
-

利用可能なマクロの一覧を表示します。マクロの説明があればそれも表示します。

- -
child_pages
-

子ページの一覧を表示します。引数の指定が無ければ現在のwikiページの子ページを表示します。以下は使用例です:

-
{{child_pages}} -- wikiページでのみ使用可能です
-{{child_pages(depth=2)}} -- 2階層分のみ表示します
- -
include
-

別のWikiページの内容を挿入します。 以下は使用例です:

-
{{include(Foo)}}
-

別プロジェクトのWikiページを挿入することもできます:

-
{{include(projectname:Foo)}}
- -
collapse
-

折り畳まれた状態のテキストを挿入します。以下は使用例です:

-
{{collapse(詳細を表示...)
-この部分はデフォルトでは折り畳まれた状態で表示されます。
-リンクをクリックすると展開されます。
-}}
- -
thumbnail
-

添付ファイルのクリック可能なサムネイル画像を表示します。以下は使用例です:

-
{{thumbnail(image.png)}}
-{{thumbnail(image.png, size=300, title=Thumbnail)}}
- -
issue
-

チケットへのリンクをカスタマイズ可能なテキストとともに挿入します。以下は使用例です:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

コードハイライト

- -

RedmineはRubyで記述されたコードハイライト用ライブラリ Rouge を使用しています。Rougeは c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml, yaml (yml) など一般的に使われている多数の言語に対応しています(括弧内の名前はコードハイライトの指定に利用できる別名です)。全対応言語の一覧は List of languages supported by Redmine code highlighter を参照してください。

- -

Wiki記法に対応している箇所であればどこでも以下の記述によりコードハイライトが利用できます (言語名・別名では大文字・小文字は区別されません):

- -
-``` ruby
-  Place your code here.
-```
-
- -

表示例:

- -
# The Greeter class
-class Greeter
-  def initialize(name)
-    @name = name.capitalize
-  end
-
-  def salute
-    puts "Hello #{@name}!"
-  end
-end
-
- - diff --git a/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_markdown.html.erb deleted file mode 100644 index f54f8a8c9..000000000 --- a/app/views/help/wiki_syntax/markdown/ja/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,78 +0,0 @@ - - - - -Wiki formatting -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki記法 クイックリファレンス (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Font Styles (" target="_blank">詳細)
<%= image_tag("jstoolbar/bold.svg", { alt: "太字" }) %>**太字**太字
<%= image_tag("jstoolbar/italic.svg", { alt: "斜体" }) %>*斜体*斜体
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "取り消し線" }) %>~~取り消し線~~取り消し線
<%= image_tag("jstoolbar/letter-c.svg", { alt: "コード" }) %>`コード`コード
```
 è¤‡æ•°è¡Œã®
 ã‚³ãƒ¼ãƒ‰
```
-
- 複数行の
- コード
-
-
コードハイライト (" target="_blank">詳細 | 対応言語)
<%= image_tag("jstoolbar/code.svg", { alt: "コードハイライト" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
リスト
<%= image_tag("jstoolbar/list.svg", { alt: "リスト" }) %>* 項目1
  * 下位階層の項目
* 項目2
  • 項目1
    • 下位階層の項目
  • 項目2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "順序付きリスト" }) %>1. 項目1
   1. 下位階層の項目
2. 項目2
  1. 項目1
    1. 下位階層の項目
  2. 項目2
見出し (" target="_blank">詳細)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># タイトル1

タイトル1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## タイトル2

タイトル2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### タイトル3

タイトル3

リンク (" target="_blank">詳細)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine内のリンク (" target="_blank">詳細)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Wikiページへのリンク" }) %>[[Wiki page]]Wiki page
チケット #12チケット #12
##12Bug #12: The issue subject
リビジョン r43リビジョン r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
画像 (" target="_blank">詳細)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](画像URL)
![](添付ファイル名)
Tables
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

より詳細なリファレンス

- - - diff --git a/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 4ea1da594..000000000 --- a/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,341 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki formatting (Markdown)

- - - -

Links

- -

Redmine links

- -

Redmine allows hyperlinking between resources (issues, changesets, wiki pages...) from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- -

Links to other resources:

- - - - - - - - - - - - - - - - - - - - - -

Escaping:

- - - - -

External links

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

displays: https://www.redmine.org,

- -

If you want to display a specific text instead of the URL, you can use the standard markdown syntax:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

displays: Redmine web site

- - -

Text formatting

- - -

For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See https://daringfireball.net/projects/markdown/syntax for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

- -

Font style

- -
-* **bold**
-* *Italic*
-* ***bold italic***
-* _underline_
-* ~~strike-through~~
-
- -

Display:

- - - -

Inline images

- - - -

Headings

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.

- - -

Blockquotes

- -

Start the paragraph with >

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

Table of content

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Horizontal Rule

- -
----
-
- -

Macros

- -

Redmine has the following 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)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Code highlighting

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

- -
-``` 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
-
- - diff --git a/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_markdown.html.erb deleted file mode 100644 index b27dbbed4..000000000 --- a/app/views/help/wiki_syntax/markdown/ko/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wiki formatting -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki Syntax Quick Reference (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Font Styles (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Strong" }) %>**Strong**Strong
<%= image_tag("jstoolbar/italic.svg", { alt: "Italic" }) %>*Italic*Italic
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_Underline_Underline
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Deleted" }) %>~~Deleted~~Deleted
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`Inline Code`Inline Code
```
 lines
 of code
```
-
- lines
- of code
-
-
Highlighted code (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "색상화한 코드" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Lists
<%= image_tag("jstoolbar/list.svg", { alt: "Unordered list" }) %>* Item 1
  * Sub
* Item 2
  • Item 1
    • Sub
  • Item 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Ordered list" }) %>1. Item 1
   1. Sub
2. Item 2
  1. Item 1
    1. Sub
  2. Item 2
Headings (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># Title 1

Title 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## Title 2

Title 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### Title 3

Title 3

Links (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine links (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Wiki page]]Wiki page
Issue #12Issue #12
##12Bug #12: The issue subject
Revision r43Revision r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Inline images (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](image_url)
![](attached_image)
Tables
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

More Information

- - - diff --git a/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 4ea1da594..000000000 --- a/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,341 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki formatting (Markdown)

- - - -

Links

- -

Redmine links

- -

Redmine allows hyperlinking between resources (issues, changesets, wiki pages...) from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- -

Links to other resources:

- - - - - - - - - - - - - - - - - - - - - -

Escaping:

- - - - -

External links

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

displays: https://www.redmine.org,

- -

If you want to display a specific text instead of the URL, you can use the standard markdown syntax:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

displays: Redmine web site

- - -

Text formatting

- - -

For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See https://daringfireball.net/projects/markdown/syntax for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

- -

Font style

- -
-* **bold**
-* *Italic*
-* ***bold italic***
-* _underline_
-* ~~strike-through~~
-
- -

Display:

- - - -

Inline images

- - - -

Headings

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.

- - -

Blockquotes

- -

Start the paragraph with >

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

Table of content

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Horizontal Rule

- -
----
-
- -

Macros

- -

Redmine has the following 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)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Code highlighting

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

- -
-``` 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
-
- - diff --git a/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_markdown.html.erb deleted file mode 100644 index 0e2e829a5..000000000 --- a/app/views/help/wiki_syntax/markdown/nl/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wiki formatting -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki Syntax Quick Reference (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Font Styles (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Strong" }) %>**Strong**Strong
<%= image_tag("jstoolbar/italic.svg", { alt: "Italic" }) %>*Italic*Italic
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_Underline_Underline
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Deleted" }) %>~~Deleted~~Deleted
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`Inline Code`Inline Code
```
 lines
 of code
```
-
- lines
- of code
-
-
Highlighted code (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Gemarkeerde code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Lists
<%= image_tag("jstoolbar/list.svg", { alt: "Unordered list" }) %>* Item 1
  * Sub
* Item 2
  • Item 1
    • Sub
  • Item 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Ordered list" }) %>1. Item 1
   1. Sub
2. Item 2
  1. Item 1
    1. Sub
  2. Item 2
Headings (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># Title 1

Title 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## Title 2

Title 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### Title 3

Title 3

Links (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine links (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Wiki page]]Wiki page
Issue #12Issue #12
##12Bug #12: The issue subject
Revision r43Revision r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Inline images (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](image_url)
![](attached_image)
Tables
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

More Information

- - - diff --git a/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 4ea1da594..000000000 --- a/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,341 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki formatting (Markdown)

- - - -

Links

- -

Redmine links

- -

Redmine allows hyperlinking between resources (issues, changesets, wiki pages...) from anywhere wiki formatting is used.

- - -

Wiki links:

- - - -

You can also link to pages of an other project wiki:

- - - -

Wiki links are displayed in red if the page doesn't exist yet, eg: Nonexistent page.

- -

Links to other resources:

- - - - - - - - - - - - - - - - - - - - - -

Escaping:

- - - - -

External links

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

displays: https://www.redmine.org,

- -

If you want to display a specific text instead of the URL, you can use the standard markdown syntax:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

displays: Redmine web site

- - -

Text formatting

- - -

For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See https://daringfireball.net/projects/markdown/syntax for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

- -

Font style

- -
-* **bold**
-* *Italic*
-* ***bold italic***
-* _underline_
-* ~~strike-through~~
-
- -

Display:

- - - -

Inline images

- - - -

Headings

- -
-# Heading
-## Subheading
-### Subsubheading
-
- -

Redmine assigns an anchor to each of those headings thus you can link to them with "#Heading", "#Subheading" and so forth.

- - -

Blockquotes

- -

Start the paragraph with >

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

Table of content

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Horizontal Rule

- -
----
-
- -

Macros

- -

Redmine has the following 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)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Code highlighting

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

You can highlight code at any place that supports wiki formatting using this syntax (note that the language name or alias is case-insensitive):

- -
-``` 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
-
- - diff --git a/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_markdown.html.erb deleted file mode 100644 index 62312df82..000000000 --- a/app/views/help/wiki_syntax/markdown/pt-br/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Formatação Wiki -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Sintaxe Wiki - Referência Rápida (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Estilos de Fonte (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Strong" }) %>**Negrito**Negrito
<%= image_tag("jstoolbar/italic.svg", { alt: "Italic" }) %>*Itálico*Itálico
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_Sublinhado_Sublinhado
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Deleted" }) %>~~Tachado~~Tachado
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`Código Inline`Código Inline
```
 linhas
 de código
```
-
- linhas
- de código
-
-
Highlighted code (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Listas
<%= image_tag("jstoolbar/list.svg", { alt: "Unordered list" }) %>* Item 1
  * Sub
* Item 2
  • Item 1
    • Sub
  • Item 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Ordered list" }) %>1. Item 1
   1. Sub
2. Item 2
  1. Item 1
    1. Sub
  2. Item 2
Cabeçalhos (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># Título 1

Título 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## Título 2

Título 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### Título 3

Título 3

Links (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Links do Redmine (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Página Wiki]]Página Wiki
Tarefa #12Tarefa #12
##12Bug #12: Título da tarefa
Revisão r43Revisão r43
commit:f30e13e43f30e13e4
source:algum/arquivosource:algum/arquivo
Imagens inline (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](url_da_imagem)
![](imagem_anexada)
Tabelas
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

Mais Informações

- - - diff --git a/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index f3e7c9fa3..000000000 --- a/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,341 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

விக்கி வடிவமைப்பு (Markdown)

- - - -

இணைப்புகள்

- -

ரெட்மைன் இணைப்புகள்

- -

ரெட்மைன் வளங்களுக்கு இடையில் ஹைப்பர்லிங்கை அனுமதிக்கிறது (சிக்கல்கள், மாற்றங்கள், விக்கி பக்கங்கள்...) எங்கிருந்தும் விக்கி வடிவமைத்தல் பயன்படுத்தப்படுகிறது.

- - -

Wiki links:

- - - -

நீங்கள் வேறு திட்ட விக்கியின் பக்கங்களுக்கும் இணைக்கலாம்:

- - - -

பக்கம் இன்னும் இல்லையென்றால் விக்கி இணைப்புகள் சிவப்பு நிறத்தில் காட்டப்படும், eg: Nonexistent page.

- -

பிற ஆவணங்களின் இணைப்புகள்:

- - - - - - - - - - - - - - - - - - - - - -

தப்பித்தல்:

- - - - -

வெளி இணைப்புகள்

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) மின்னஞ்சல் முகவரிகள் தானாக கிளிக் செய்யக்கூடிய இணைப்புகளாக மாற்றப்படும்:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

காட்சிகள்: https://www.redmine.org,

- -

URL க்கு பதிலாக ஒரு குறிப்பிட்ட உரையைக் காட்ட விரும்பினால், நீங்கள் நிலையான மார்க் டவுன் தொடரியல் பயன்படுத்தலாம்:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

காட்சிகள்: ரெட்மைன் வலைத்தளம்

- - -

உரை வடிவமைத்தல்

- - -

தலைப்புச் செய்திகள், தடித்த, அட்டவணைகள், பட்டியல்கள் போன்ற விஷயங்களுக்கு, ரெட்மைன் மார்க் டவுன் தொடரியல் ஆதரிக்கிறது. See https://daringfireball.net/projects/markdown/syntax இந்த அம்சங்களில் ஏதேனும் ஒன்றைப் பயன்படுத்துவது பற்றிய தகவலுக்கு. ஒரு சில மாதிரிகள் கீழே சேர்க்கப்பட்டுள்ளன, ஆனால் இயந்திரம் அதைவிட அதிக திறன் கொண்டது.

- -

எழுத்துரு வகை

- -
-* **வலுவான**
-* *சாய்வு*
-* ***தைரியமான சாய்வு***
-* _அடிக்கோடிட்டுக் காட்டு_
-* ~~வேலைநிறுத்தம் மூலம்~~
-
- -

காட்சி:

- - - -

இன்லைன் படங்கள்

- - - -

தலைப்புகள்

- -
-# தலைப்பு
-## துணை தலைப்பு
-### துணை தலைப்பு
-
- -

ரெட்மைன் அந்த ஒவ்வொரு தலைப்பிற்கும் ஒரு நங்கூரத்தை ஒதுக்குகிறது, இதனால் நீங்கள் அவற்றுடன் இணைக்க முடியும் "#தலைப்பு"", "#துணை தலைப்பு" மற்றும் முன்னும் பின்னுமாக.

- - -

தொகுதிகள்

- -

உடன் பத்தியைத் தொடங்குங்கள் >

- -
-> ரெயில்ஸ் என்பது மாடல்-வியூ-கண்ட்ரோல் முறைக்கு ஏற்ப தரவுத்தள ஆதரவுடைய வலை பயன்பாடுகளை உருவாக்குவதற்கான முழு அடுக்கு கட்டமைப்பாகும்.
-நேரலைக்குச் செல்ல, நீங்கள் சேர்க்க வேண்டியது தரவுத்தளம் மற்றும் வலை சேவையகம் மட்டுமே.
-
- -

Display:

- -
-

ரெயில்ஸ் என்பது மாடல்-வியூ-கண்ட்ரோல் முறைக்கு ஏற்ப தரவுத்தள ஆதரவுடைய வலை பயன்பாடுகளை உருவாக்குவதற்கான முழு அடுக்கு கட்டமைப்பாகும்.
நேரலைக்குச் செல்ல, நீங்கள் சேர்க்க வேண்டியது தரவுத்தளம் மற்றும் வலை சேவையகம் மட்டுமே.

-
- - -

உள்ளடக்க அட்டவணை

- -
-{{toc}} => இடது சீரமைக்கப்பட்ட உள்ளடக்க அட்டவணை
-{{>toc}} => வலது சீரமைக்கப்பட்ட உள்ளடக்க அட்டவணை
-
- -

கிடைமட்ட விதி

- -
----
-
- -

குறுநிரல்கள்

- -

ரெட்மைனில் பின்வரும் பில்டின் குறுநிரல்கள் உள்ளன:

- -

-

-
hello_world
-

மாதிரி குறுநிரல்.

- -
macro_list
-

விளக்கம் கிடைத்தால் உட்பட, கிடைக்கக்கூடிய அனைத்து மேக்ரோக்களின் பட்டியலையும் காட்டுகிறது.

- -
child_pages
-

கீழ் பக்கங்களின் பட்டியலைக் காட்டுகிறது. எந்த வாதமும் இல்லாமல், இது தற்போதைய விக்கி பக்கத்தின் கீழ் பக்கங்களைக் காட்டுகிறது. எடுத்துக்காட்டுகள்:

-
{{child_pages}} -- விக்கி பக்கத்திலிருந்து மட்டுமே பயன்படுத்த முடியும்
-{{child_pages(depth=2)}} -- 2 நிலைகள் கூடுகளை மட்டும் காண்பி
- -
include
-

விக்கி பக்கத்தைச் சேர்க்கவும். எடுத்துக்காட்டுகள்:

-
{{include(Foo)}}
-

அல்லது ஒரு குறிப்பிட்ட திட்ட விக்கியின் பக்கத்தை சேர்க்க:

-
{{include(projectname:Foo)}}
- -
collapse
-

சுருங்கிய தொகுதியின் செருகல்கள். எடுத்துக்காட்டுகள்:

-
{{collapse(விபரங்களை பார்...)
-இது முன்னிருப்பாக சரிந்த உரையின் தொகுதி.
-இணைப்பைக் கிளிக் செய்வதன் மூலம் அதை விரிவாக்க முடியும்.
-}}
- -
thumbnail
-

இணைக்கப்பட்ட படத்தின் கிளிக் செய்யக்கூடிய சிறுபடத்தைக் காட்டுகிறது. எடுத்துக்காட்டுகள்:

-
{{thumbnail(image.png)}}
-{{thumbnail(image.png, size=300, title=சிறுபடம்)}}
- -
issue
-

நெகிழ்வான உரையுடன் சிக்கலுக்கான இணைப்பைச் செருகும். எடுத்துக்காட்டுகள்:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

குறியீடு சிறப்பம்சமாக

- -

இயல்புநிலை குறியீடு சிறப்பம்சத்தை நம்பியுள்ளது Rouge, தூய ரூபியில் எழுதப்பட்ட ஒரு தொடரியல் சிறப்பம்சமாக நூலகம். It supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages, where the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

இந்த தொடரியல் பயன்படுத்தி விக்கி வடிவமைப்பை ஆதரிக்கும் எந்த இடத்திலும் குறியீட்டை முன்னிலைப்படுத்தலாம் (மொழி பெயர் அல்லது மாற்று வழக்கு-உணர்வற்றது என்பதை நினைவில் கொள்க):

- -
-``` ruby
-  உங்கள் குறியீட்டை இங்கே வைக்கவும்.
-```
-
- -

எடுத்துக்காட்டுகள்:

- -
# The Greeter class
-class Greeter
-  def initialize(name)
-    @name = name.capitalize
-  end
-
-  def salute
-    puts "Hello #{@name}!"
-  end
-end
-
- - diff --git a/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_markdown.html.erb deleted file mode 100644 index 0f45b18e7..000000000 --- a/app/views/help/wiki_syntax/markdown/ta-in/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Wiki formatting -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

விக்கி தொடரியல் விரைவு குறிப்பு (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
எழுத்துரு பாங்குகள் (" target="_blank">மேலும்)
<%= image_tag("jstoolbar/bold.svg", { alt: "Strong" }) %>**வலுவான**வலுவான
<%= image_tag("jstoolbar/italic.svg", { alt: "Italic" }) %>*சாய்வு*சாய்வு
<%= image_tag("jstoolbar/underline.svg", { alt: "Underline" }) %>_அடிக்கோடிட்டு_அடிக்கோடிட்டு
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Deleted" }) %>~~நீக்கப்பட்டது~~நீக்கப்பட்டது
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Inline code" }) %>`இன்லைன் குறியீடு`இன்லைன் குறியீடு
```
 à®•à¯‡à®¾à®Ÿà¯à®•à®³à¯
 à®•à¯à®±à®¿à®¯à¯€à®Ÿà¯
```
-
- கோடுகள்
- குறியீடு
-
-
சிறப்பம்சமாக குறியீடு (" target="_blank">மேலும் | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Highlighted code" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
பட்டியல்கள்
<%= image_tag("jstoolbar/list.svg", { alt: "Unordered list" }) %>* பொருள் 1
  * துணை
* பொருள் 2
  • பொருள் 1
    • துணை
  • பொருள் 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Ordered list" }) %>1. பொருள் 1
   1. துணை
2. பொருள் 2
  1. பொருள் 1
    1. துணை
  2. பொருள் 2
தலைப்புகள்(" target="_blank">மேலும்)
<%= image_tag("jstoolbar/h1.svg", { alt: "Heading 1" }) %># தலைப்பு 1

தலைப்பு 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Heading 2" }) %>## தலைப்பு 2

தலைப்பு 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Heading 3" }) %>### தலைப்பு 3

தலைப்பு 3

இணைப்புகள் (" target="_blank">மேலும்)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine இணைப்புகள் (" target="_blank">மேலும்)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Link to a Wiki page" }) %>[[Wiki page]]Wiki page
சிக்கல்கள் #12சிக்கல்கள் #12
##12Bug #12: The issue subject
திருத்தம் r43திருத்தம் r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
இன்லைன் படங்கள் (" target="_blank">மேலும)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](படம்_url)
![](இணைக்கப்பட்ட_படம்)
அட்டவணை
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

மேலும் தகவல்

- - - diff --git a/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index 7ea412eea..000000000 --- a/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,339 +0,0 @@ - - - -Redmine - форматування вікі сторінок (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Форматування вікі сторінок (Markdown)

- - - -

Лінки(посилання)

- -

Redmine лінки(посилання)

- -

Redmine дозволяє гіперпосилання між ресурсами (завданнями, змінами, вікі-сторінками ...) з будь-якого місця, де використовується вікі-форматування.

- - -

Вікі посилання:

- - - -

Ви також можете посилатися на сторінки з вікі іншого проекту:

- - - -

Вікі посилання відображаються червоним кольором, якщо сторінка ще не існує: Неіснуюча сторінка.

- -

Посилання на інші ресурси:

- - - - - - - - - - - - - - - - - - - - - -

Запобігання перетворенню(escaping):

- - - - -

Зовнішні посилання

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

відображаються як: https://www.redmine.org,

- -

Якщо ви хочете, відобразити текст замість URL, ви можете використовувати стандартний markdown синтаксис:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

відображається як: Redmine web site

- - -

Форматування тексту

- - -

Для таких речей як: заголовки, жирний текст, таблиці, списки, Redmine підтримує Markdown синтаксис. Перегляньте https://daringfireball.net/projects/markdown/syntax для отримання інформації як цим користуватись. Нижче наводиться декілька прикладів, але можливості Markdown набагато більщі ніж у наведених прикладах.

- -

Стиль шрифту

- -
-* **Жирний**
-* *Курсив*
-* ***Жирний курсив***
-* ~~Закреслений~~
-
- -

Відображення:

- - - -

Вбудовані(inline) зображення

- - - -

Заголовоки

- -
-# Заголовок
-## Підзаголовок
-### Підзаголовок
-
- -

Redmine призначає якір кожному з цих заголовків, таким чином, ви можете посилатись на них з "#Заголовок", "#Підзаголовок" і так далі.

- - -

Цитати

- -

Почніть параграф з >

- -
-> Redmine — серверний веб-додаток з відкритим кодом для управління проектами та відстежування помилок. До системи входить календар-планувальник та діаграми Ганта
-для візуального представлення ходу робіт за проектом та строків виконання.
-
- -

Відображається:

- -
-

Redmine — серверний веб-додаток з відкритим кодом для управління проектами та відстежування помилок. До системи входить календар-планувальник та діаграми Ганта
для візуального представлення ходу робіт за проектом та строків виконання.

-
- - -

Таблиці змісту сторінки

- -
-{{toc}} => left aligned toc
-{{>toc}} => right aligned toc
-
- -

Горизонтальна лінія

- -
----
-
- -

Макроси

- -

Redmine має наступні вбудовані макроси:

- -

-

-
hello_world
-

Приклад макросу.

- -
macro_list
-

Відображає список всіх доступних макросів, в тому числі опис, якщо такий є.

- -
child_pages
-

Відображає список дочірніх сторінок. Без аргументів, він відображає дочірні сторінки поточної сторінки вікі. Приклад:

-
{{child_pages}} -- може бути використаний тільки на вікі-сторінці
-{{child_pages(depth=2)}} -- відображає тільки 2 рівня вкладень
- -
include
-

Вставити вікі-сторінку. Приклад:

-
{{include(Foo)}}
-

або вставити сторінку з конкретного проекту вікі:

-
{{include(projectname:Foo)}}
- -
collapse
-

Втавте блок тексту, який має з'являтись при натисканні на "Детальніше...". Приклад:

-
{{collapse(Детальніше...)
-Це блок тексту прихований по замовчуванню.
-Його можливо показати натиснувши на посилання
-}}
- -
thumbnail
-

Відображає інтерактивні мініатюри вкладеного зображення. Приклади:

-
{{thumbnail(image.png)}}
-{{thumbnail(image.png, size=300, title=Thumbnail)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

Підсвітка синтаксису коду

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

Ви можете виділити підсвіткою код в будь-якому місці, яке підтримує вікі-форматування, використовуючи наступний синтаксис (зверніть увагу, що назва мови або псевдонім не чутливі до регістру):

- -
-``` ruby
-  Place your code here.
-```
-
- -

Приклад:

- -
# The Greeter class
-class Greeter
-  def initialize(name)
-    @name = name.capitalize
-  end
-
-  def salute
-    puts "Hello #{@name}!"
-  end
-end
-
- - diff --git a/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_markdown.html.erb deleted file mode 100644 index acfabdc9d..000000000 --- a/app/views/help/wiki_syntax/markdown/uk/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,79 +0,0 @@ - - - - -Вікі синтаксис (Markdown) -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Вікі синтаксис швидка підказка (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cтилі шрифтів (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "Жирний" }) %>**Жирний**Жирний
<%= image_tag("jstoolbar/italic.svg", { alt: "Курсив" }) %>*Курсив*Курсив
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "Закреслений" }) %>~~Закреслений~~Закреслений
<%= image_tag("jstoolbar/letter-c.svg", { alt: "Інлайн код" }) %>`Інлайн код`Інлайн код
```
 ÐŸÐ¾Ð¿ÐµÑ€ÐµÐ´Ð½ÑŒÐ¾
 Ð²Ñ–дформатований
 Ñ‚екст
```
-
- Попередньо
- відформатований
- текст
-
-
иділений код (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "Виділений код" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
Списки
<%= image_tag("jstoolbar/list.svg", { alt: "Ненумерованний список" }) %>* Пункт
  * Підпункт
* Пункт
  • Пункт
    • Підпункт
  • Пункт
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "Нумерований список" }) %>1. Пункт
   1. Підпункт
2. Пункт
  1. Пункт
    1. Підпункт
  2. Пункт
Заголовоки (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "Заголовок 1" }) %># Заголовок 1

Заголовок 1

<%= image_tag("jstoolbar/h2.svg", { alt: "Заголовок 2" }) %>## Заголовок 2

Заголовок 2

<%= image_tag("jstoolbar/h3.svg", { alt: "Заголовок 3" }) %>### Заголовок 3

Заголовок 3

Лінки(посилання) (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine посилання (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "Посилання на вікі сторінку" }) %>[[Вікі сторінка]]Вікі сторінка
Завдання #12Завдання #12
##12Bug #12: The issue subject
Revision r43Revision r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
Вбудовані(inline) зображення (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "Image" }) %>![](image_url)
![](attached_image)
Таблиці
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

Детальніша інформація

- - - diff --git a/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_detailed_markdown.html.erb b/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_detailed_markdown.html.erb deleted file mode 100644 index d53b9a0ed..000000000 --- a/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_detailed_markdown.html.erb +++ /dev/null @@ -1,339 +0,0 @@ - - - -RedmineWikiFormatting (Markdown) - -<%= stylesheet_link_tag "wiki_syntax_detailed.css" %> - - - -

Wiki 格式設定 (Markdown)

- - - -

連結

- -

Redmine 連結

- -

在任何可以使用 Wiki 格式設定的地方, Redmine 都允許在資源 (議題、變更集、 Wiki 頁面...) 間建立超連結。

- - -

Wiki 連結:

- - - -

您也可以連結至其他專案的 Wiki 頁面:

- - - -

當頁面不存在的時候, Wiki 連結會以紅色的方式顯示,例如: Nonexistent page.

- -

連結至其他資源:

- - - - - - - - - - - - - - - - - - - - - -

逸出字元:

- - - - -

外部連結

- -

URLs (starting with: www, http, https, ftp, ftps, sftp and sftps) and email addresses are automatically turned into clickable links:

- -
-https://www.redmine.org, someone@foo.bar
-
- -

會顯示成: https://www.redmine.org,

- -

若您想要顯示指定的文字而非該 URL ,您可以使用下列標準的 markdown 語法:

- -
-[Redmine web site](https://www.redmine.org)
-
- -

會顯示成: Redmine web site

- - -

文字格式設定

- - -

對於諸如標題、粗體、表格、清單等項目, Redmine 支援使用 Markdown 語法。 可參考 https://daringfireball.net/projects/markdown/syntax 中關於使用這些格式化功能的說明資訊。 下面包含了一些使用範例,但格式化引擎的處理能力遠多於這些簡單的使用範例。

- -

字型樣式

- -
-* **粗體**
-* *斜體*
-* ***粗斜體***
-* ~~刪除線~~
-
- -

會顯示成:

- - - -

內嵌圖像

- - - -

標題

- -
-# 標題
-## 次標題
-### 次次標題
-
- -

Redmine 為每一種標題指定一個 HTML 錨定 (anchor) ,因此您可使用 "#標題" 、 "#次標題" 等方式連結至這些標題。

- - -

區塊引述

- -

使用 > 啟動一個區塊引述的段落。

- -
-> 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.
-
- -

Display:

- -
-

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.

-
- - -

目錄

- -
-{{toc}} => 靠左對齊目錄
-{{>toc}} => 靠右對齊目錄
-
- -

水平線

- -
----
-
- -

巨集

- -

Redmine 內建下列巨集:

- -

-

-
hello_world
-

範例巨集

- -
macro_list
-

顯示所有可用巨集的清單,若巨集有提供說明也會一併顯示。

- -
child_pages
-

顯示子頁面的清單。 若未指定參數,它將會顯示目前 Wiki 頁面的子頁面清單。 範例:

-
{{child_pages}} -- 僅可於某 Wiki 頁面中被使用
-{{child_pages(depth=2)}} -- 僅顯示兩層巢狀層次
- -
include
-

引入一個 wiki 頁面。範例:

-
{{include(Foo)}}
-

或用以引入某特定專案的 Wiki 頁面:

-
{{include(projectname:Foo)}}
- -
collapse
-

插入一個摺疊的文字區塊。範例:

-
{{collapse(View details...)
-This is a block of text that is collapsed by default.
-It can be expanded by clicking a link.
-}}
- -
thumbnail
-

顯示可被點擊的附加圖像之縮圖。範例:

-
{{thumbnail(image.png)}}
-{{thumbnail(image.png, size=300, title=Thumbnail)}}
- -
issue
-

Inserts a link to an issue with flexible text. Examples:

-
{{issue(123)}}                              -- Issue #123: Enhance macro capabilities
-{{issue(123, project=true)}}                -- Andromeda - Issue #123:Enhance macro capabilities
-{{issue(123, tracker=false)}}               -- #123: Enhance macro capabilities
-{{issue(123, subject=false, project=true)}} -- Andromeda - Issue #123
-
-

- -

程式碼醒目提示

- -

Default code highlighting relies on Rouge, a pure Ruby code highlighter. Rouge supports many commonly used languages such as c, cpp (c++), csharp (c#, cs), css, diff (patch, udiff), go (golang), groovy, html, java, javascript (js), kotlin, objective_c (objc), perl (pl), php, python (py), r, ruby (rb), sass, scala, shell (bash, zsh, ksh, sh), sql, swift, xml and yaml (yml) languages - the names inside parentheses are aliases. Please refer to the list of languages supported by Redmine code highlighter.

- -

您可載任何支援 Wiki 格式設定的地方,使用這個語法來醒目提示程式碼 (注意語言與其別名的名稱不須區分大小寫):

- -
-``` ruby
-  將程式碼放在這裡。
-```
-
- -

範例:

- -
# The Greeter class
-class Greeter
-  def initialize(name)
-    @name = name.capitalize
-  end
-
-  def salute
-    puts "Hello #{@name}!"
-  end
-end
-
- - diff --git a/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_markdown.html.erb b/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_markdown.html.erb deleted file mode 100644 index fe5793cb1..000000000 --- a/app/views/help/wiki_syntax/markdown/zh-tw/wiki_syntax_markdown.html.erb +++ /dev/null @@ -1,78 +0,0 @@ - - - - -Wiki 格式設定 -<%= stylesheet_link_tag "wiki_syntax.css" %> - - - -

Wiki 語法快速對照表 (Markdown)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
字型樣式 (" target="_blank">more)
<%= image_tag("jstoolbar/bold.svg", { alt: "強調粗體" }) %>**強調粗體**強調粗體
<%= image_tag("jstoolbar/italic.svg", { alt: "斜體" }) %>*斜體*斜體
<%= image_tag("jstoolbar/strikethrough.svg", { alt: "刪除線" }) %>~~刪除線~~刪除線
<%= image_tag("jstoolbar/letter-c.svg", { alt: "內嵌程式碼" }) %>`內嵌程式碼`內嵌程式碼
```
 æ ¼å¼åŒ–
 çš„段落文字
```
-
- 格式化
- 的段落文字
-
-
反白程式碼 (" target="_blank">more | supported languages)
<%= image_tag("jstoolbar/code.svg", { alt: "反白程式碼" }) %>``` ruby
3.times do
  puts 'Hello'
end
```
-
3.times do
-  puts 'Hello'
-end
-
-
清單
<%= image_tag("jstoolbar/list.svg", { alt: "不排序清單" }) %>* 清單項目 1
  * 子清單項目
* 清單項目 2
  • 清單項目 1
    • 子清單項目
  • 清單項目 2
<%= image_tag("jstoolbar/list-numbers.svg", { alt: "排序清單" }) %>1. 清單項目 1
   1. 子清單項目
2. 清單項目 2
  1. 清單項目 1
    1. 子清單項目
  2. 清單項目 2
標題 (" target="_blank">more)
<%= image_tag("jstoolbar/h1.svg", { alt: "標題 1" }) %># 標題 1

標題 1

<%= image_tag("jstoolbar/h2.svg", { alt: "標題 2" }) %>## 標題 2

標題 2

<%= image_tag("jstoolbar/h3.svg", { alt: "標題 3" }) %>### 標題 3

標題 3

連結 (" target="_blank">more)
http://foo.barhttp://foo.bar
[Foo](http://foo.bar)Foo
Redmine 連結 (" target="_blank">more)
<%= image_tag("jstoolbar/wiki_link.svg", { alt: "連結至一個 Wiki 頁面" }) %>[[Wiki 頁面]]Wiki 頁面
議題 #12議題 #12
##12Bug #12: The issue subject
版次 r43版次 r43
commit:f30e13e43f30e13e4
source:some/filesource:some/file
內嵌圖像 (" target="_blank">more)
<%= image_tag("jstoolbar/image.svg", { alt: "圖像" }) %>![](圖像_url)
![](附加_圖像)
表格
| A | B | C |
|---|---|---|
| A | B | C |
| D | E | F |
- - - - - - -
ABC
ABC
DEF
-
- -

更多資訊

- - - diff --git a/app/views/repositories/entry.html.erb b/app/views/repositories/entry.html.erb index 831e8044a..b4a221af9 100644 --- a/app/views/repositories/entry.html.erb +++ b/app/views/repositories/entry.html.erb @@ -13,7 +13,7 @@ <% elsif Redmine::MimeType.of(@path) == 'text/x-textile' %> <%= render :partial => 'common/markup', :locals => {:markup_text_formatting => 'textile', :markup_text => @content} %> <% elsif Redmine::MimeType.of(@path) == 'text/markdown' %> - <%= render :partial => 'common/markup', :locals => {:markup_text_formatting => markdown_formatter, :markup_text => @content} %> + <%= render :partial => 'common/markup', :locals => {:markup_text_formatting => 'common_mark', :markup_text => @content} %> <% elsif @content %> <%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %> <% else %> diff --git a/db/migrate/20241007144951_change_text_formatting_from_markdown_to_common_mark.rb b/db/migrate/20241007144951_change_text_formatting_from_markdown_to_common_mark.rb new file mode 100644 index 000000000..984a889ca --- /dev/null +++ b/db/migrate/20241007144951_change_text_formatting_from_markdown_to_common_mark.rb @@ -0,0 +1,9 @@ +class ChangeTextFormattingFromMarkdownToCommonMark < ActiveRecord::Migration[7.2] + def up + Setting.find_by(name: 'text_formatting', value: 'markdown')&.update(value: 'common_mark') + end + + def down + # no-op + end +end diff --git a/lib/redmine.rb b/lib/redmine.rb index 63961614d..2edfa55e9 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -24,11 +24,6 @@ begin rescue LoadError # MiniMagick is not available end -begin - require 'redcarpet' unless Object.const_defined?(:Redcarpet) -rescue LoadError - # Redcarpet is not available -end begin require 'commonmarker' unless Object.const_defined?(:CommonMarker) rescue LoadError diff --git a/lib/redmine/acts/mentionable.rb b/lib/redmine/acts/mentionable.rb index f8332637e..d0d33ddf7 100644 --- a/lib/redmine/acts/mentionable.rb +++ b/lib/redmine/acts/mentionable.rb @@ -86,7 +86,7 @@ module Redmine case text_formatting when 'textile' content = content.gsub(%r{
(.*?)
}m, '') - when 'markdown', 'common_mark' + when 'common_mark' content = content.gsub(%r{(~~~|```)(.*?)(~~~|```)}m, '') end diff --git a/lib/redmine/preparation.rb b/lib/redmine/preparation.rb index 553f8693a..1aeb81e46 100644 --- a/lib/redmine/preparation.rb +++ b/lib/redmine/preparation.rb @@ -408,7 +408,6 @@ module Redmine WikiFormatting.map do |format| format.register :textile - format.register :markdown, label: 'Markdown (deprecated)' if Object.const_defined?(:Redcarpet) if Object.const_defined?(:CommonMarker) format.register :common_mark, label: 'CommonMark Markdown (GitHub Flavored)' end diff --git a/lib/redmine/wiki_formatting/markdown/formatter.rb b/lib/redmine/wiki_formatting/markdown/formatter.rb deleted file mode 100644 index f2e7a6581..000000000 --- a/lib/redmine/wiki_formatting/markdown/formatter.rb +++ /dev/null @@ -1,109 +0,0 @@ -# frozen_string_literal: true - -# Redmine - project management software -# Copyright (C) 2006- Jean-Philippe Lang -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -require 'cgi' - -module Redmine - module WikiFormatting - module Markdown - class HTML < Redcarpet::Render::HTML - include ActionView::Helpers::TagHelper - include Redmine::Helpers::URL - - def autolink(link, link_type) - if link_type == :email - link("mailto:#{link}", nil, link) || CGI.escapeHTML(link) - else - content = link - # Pretty printing: if we get an email address as an actual URI, e.g. - # `mailto:foo@bar.com`, we don't want to print the `mailto:` prefix - content = link[7..-1] if link.start_with?('mailto:') - - link(link, nil, content) || CGI.escapeHTML(link) - end - end - - def link(link, title, content) - return nil unless uri_with_link_safe_scheme?(link) - - css = nil - unless link&.starts_with?('/') || link&.starts_with?('mailto:') - css = 'external' - end - content_tag('a', content.to_s.html_safe, :href => link, :title => title, :class => css) - end - - def block_code(code, language) - if language.present? && Redmine::SyntaxHighlighting.language_supported?(language) - html = Redmine::SyntaxHighlighting.highlight_by_language(code, language) - classattr = " class=\"#{CGI.escapeHTML language} syntaxhl\"" - else - html = CGI.escapeHTML(code) - end - # original language for extension development - langattr = " data-language=\"#{CGI.escapeHTML language}\"" if language.present? - "
#{html}
" - end - - def image(link, title, alt_text) - return unless uri_with_safe_scheme?(link) - - tag('img', :src => link, :alt => alt_text || "", :title => title) - end - end - - class Formatter - include Redmine::WikiFormatting::LinksHelper - include Redmine::WikiFormatting::SectionHelper - alias :inline_restore_redmine_links :restore_redmine_links - - def initialize(text) - @text = text - end - - def to_html(*args) - html = formatter.render(@text) - html = inline_restore_redmine_links(html) - html - end - - private - - def formatter - @@formatter ||= Redcarpet::Markdown.new( - Redmine::WikiFormatting::Markdown::HTML.new( - :filter_html => true, - :hard_wrap => true - ), - :autolink => true, - :fenced_code_blocks => true, - :space_after_headers => true, - :tables => true, - :strikethrough => true, - :superscript => true, - :no_intra_emphasis => true, - :footnotes => true, - :lax_spacing => true, - :underline => true - ) - end - end - end - end -end diff --git a/lib/redmine/wiki_formatting/markdown/helper.rb b/lib/redmine/wiki_formatting/markdown/helper.rb deleted file mode 100644 index e77547412..000000000 --- a/lib/redmine/wiki_formatting/markdown/helper.rb +++ /dev/null @@ -1,64 +0,0 @@ -# frozen_string_literal: true - -# Redmine - project management software -# Copyright (C) 2006- Jean-Philippe Lang -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -module Redmine - module WikiFormatting - module Markdown - module Helper - def wikitoolbar_for(field_id, preview_url = preview_text_path) - heads_for_wiki_formatter - - javascript_tag( - "var wikiToolbar = new jsToolBar(document.getElementById('#{field_id}')); " \ - "wikiToolbar.setHelpLink('#{escape_javascript help_wiki_syntax_path}'); " \ - "wikiToolbar.setPreviewUrl('#{escape_javascript preview_url}'); " \ - "wikiToolbar.draw();" - ) - end - - def initial_page_content(page) - "# #{page.pretty_title}" - end - - def heads_for_wiki_formatter - unless @heads_for_wiki_formatter_included - toolbar_language_options = User.current && User.current.pref.toolbar_language_options - lang = - if toolbar_language_options.nil? - UserPreference::DEFAULT_TOOLBAR_LANGUAGE_OPTIONS - else - toolbar_language_options.split(',') - end - content_for :header_tags do - javascript_include_tag('jstoolbar/jstoolbar') + - javascript_include_tag('jstoolbar/markdown') + - javascript_include_tag("jstoolbar/lang/jstoolbar-#{current_language.to_s.downcase}") + - javascript_tag( - "var wikiImageMimeTypes = #{Redmine::MimeType.by_type('image').to_json};" \ - "var userHlLanguages = #{lang.to_json};" - ) + - stylesheet_link_tag('jstoolbar') - end - @heads_for_wiki_formatter_included = true - end - end - end - end - end -end diff --git a/lib/redmine/wiki_formatting/markdown/html_parser.rb b/lib/redmine/wiki_formatting/markdown/html_parser.rb deleted file mode 100644 index 6e16126d9..000000000 --- a/lib/redmine/wiki_formatting/markdown/html_parser.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -# Redmine - project management software -# Copyright (C) 2006- Jean-Philippe Lang -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -module Redmine - module WikiFormatting - module Markdown - class HtmlParser < Redmine::WikiFormatting::HtmlParser - self.tags = tags.merge( - 'b' => {:pre => '**', :post => '**'}, - 'strong' => {:pre => '**', :post => '**'}, - 'i' => {:pre => '*', :post => '*'}, - 'em' => {:pre => '*', :post => '*'}, - 'u' => {:pre => '_', :post => '_'}, - 'strike' => {:pre => '~~', :post => '~~'}, - 'h1' => {:pre => "\n\n# ", :post => "\n\n"}, - 'h2' => {:pre => "\n\n## ", :post => "\n\n"}, - 'h3' => {:pre => "\n\n### ", :post => "\n\n"}, - 'h4' => {:pre => "\n\n#### ", :post => "\n\n"}, - 'h5' => {:pre => "\n\n##### ", :post => "\n\n"}, - 'h6' => {:pre => "\n\n###### ", :post => "\n\n"}, - 'th' => {:pre => '*', :post => "*\n"}, - 'td' => {:pre => '', :post => "\n"}, - 'a' => lambda do |node| - if node.content.present? && node.attributes.key?('href') - %| [#{node.content}](#{node.attributes['href'].value}) | - elsif node.attributes.key?('href') - %| #{node.attributes['href'].value} | - else - node.content - end - end - ) - end - end - end -end diff --git a/test/functional/help_controller_test.rb b/test/functional/help_controller_test.rb index 153a6d518..27838aba9 100644 --- a/test/functional/help_controller_test.rb +++ b/test/functional/help_controller_test.rb @@ -25,7 +25,6 @@ class HelpControllerTest < Redmine::ControllerTest def test_get_help_wiki_syntax formatters = { :textile => "Wiki Syntax Quick Reference", - :markdown => "Wiki Syntax Quick Reference (Markdown)", :common_mark => "Wiki Syntax Quick Reference (CommonMark Markdown (GitHub Flavored))" } @@ -42,7 +41,6 @@ class HelpControllerTest < Redmine::ControllerTest def test_get_help_wiki_syntax_detailed formatters = { :textile => "Wiki formatting", - :markdown => "Wiki formatting (Markdown)", :common_mark => "Wiki formatting (CommonMark Markdown (GitHub Flavored))" } diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 6bf8911af..a2c4ac82f 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -263,16 +263,16 @@ class ApplicationHelperTest < Redmine::HelperTest end def test_attached_images_with_markdown_and_non_ascii_filename - skip unless Object.const_defined?(:Redcarpet) + skip unless Object.const_defined?(:CommonMarker) to_test = { 'CAFÉ.JPG' => 'CAF%C3%89.JPG', 'crème.jpg' => 'cr%C3%A8me.jpg', } - with_settings :text_formatting => 'markdown' do + with_settings :text_formatting => 'common_mark' do to_test.each do |filename, result| attachment = Attachment.generate!(:filename => filename) - assert_include %(), + assert_include %(), textilizable("![](#{filename})", :attachments => [attachment]) end end @@ -643,9 +643,9 @@ class ApplicationHelperTest < Redmine::HelperTest end def test_user_links_with_email_as_login_name_should_not_be_parsed_markdown - with_settings :text_formatting => 'markdown' do + with_settings :text_formatting => 'common_mark' do u = User.generate!(:login => 'jsmith@somenet.foo') - html = 'jsmith@somenet.foo' + html = 'jsmith@somenet.foo' # user link format: @jsmith@somenet.foo raw = "@jsmith@somenet.foo should not be parsed in jsmith@somenet.foo" @@ -1010,7 +1010,7 @@ class ApplicationHelperTest < Redmine::HelperTest %r{

image@2x.png should not be parsed in image@2x.png

}, textilizable(raw, :attachments => [attachment])) end - with_settings :text_formatting => 'markdown' do + with_settings :text_formatting => 'common_mark' do raw = "attachment:image@2x.png should not be parsed in image@2x.png" assert_match( %r{

image@2x.png should not be parsed in image@2x.png

}, @@ -1133,7 +1133,7 @@ class ApplicationHelperTest < Redmine::HelperTest to_test = wiki_links_with_special_characters @project = Project.find(1) - with_settings :text_formatting => 'markdown' do + with_settings :text_formatting => 'common_mark' do to_test.each {|text, result| assert_equal "

#{result}

", textilizable(text).strip} end end @@ -1175,7 +1175,7 @@ class ApplicationHelperTest < Redmine::HelperTest with_settings :text_formatting => 'textile' do to_test.each {|text, result| assert_equal "

#{result}

", textilizable(text)} end - with_settings :text_formatting => 'markdown' do + with_settings :text_formatting => 'common_mark' do to_test.each {|text, result| assert_equal "

#{result}

", textilizable(text).strip} end end @@ -1669,9 +1669,9 @@ class ApplicationHelperTest < Redmine::HelperTest end end - if Object.const_defined?(:Redcarpet) + if Object.const_defined?(:CommonMarker) def test_toc_with_markdown_formatting_should_be_parsed - with_settings :text_formatting => 'markdown' do + with_settings :text_formatting => 'common_mark' do assert_select_in textilizable("{{toc}}\n\n# Heading"), 'ul.toc li', :text => 'Heading' assert_select_in textilizable("{{ 'Heading' assert_select_in textilizable("{{>toc}}\n\n# Heading"), 'ul.toc.right li', :text => 'Heading' @@ -2321,20 +2321,6 @@ class ApplicationHelperTest < Redmine::HelperTest end end - # TODO: Remove this test when Redcarpet-based Markdown formatter is removed - def test_markdown_formatter - [ - ['markdown', 'markdown'], - ['common_mark', 'common_mark'], - ['textile', 'common_mark'], - ['', 'common_mark'] - ].each do |text_formatting, expected| - with_settings text_formatting: text_formatting do - assert_equal expected, markdown_formatter - end - end - end - def test_export_csv_separator_select_tag with_locale 'en' do result = export_csv_separator_select_tag diff --git a/test/system/keyboard_shortcuts_test.rb b/test/system/keyboard_shortcuts_test.rb index bc5e2ea31..32f5dbe56 100644 --- a/test/system/keyboard_shortcuts_test.rb +++ b/test/system/keyboard_shortcuts_test.rb @@ -90,7 +90,7 @@ class InlineAutocompleteSystemTest < ApplicationSystemTestCase end def test_keyboard_shortcuts_for_wiki_toolbar_buttons_using_markdown - with_settings :text_formatting => 'markdown' do + with_settings :text_formatting => 'common_mark' do log_user('jsmith', 'jsmith') visit 'issues/new' diff --git a/test/unit/lib/redmine/acts/mentionable_test.rb b/test/unit/lib/redmine/acts/mentionable_test.rb index 4ccb88b22..86f6b7cf2 100644 --- a/test/unit/lib/redmine/acts/mentionable_test.rb +++ b/test/unit/lib/redmine/acts/mentionable_test.rb @@ -113,7 +113,7 @@ class Redmine::Acts::MentionableTest < ActiveSupport::TestCase ``` STR - with_settings text_formatting: 'markdown' do + with_settings text_formatting: 'common_mark' do issue = Issue.generate!(project_id: 1, description: description) assert_equal [], issue.mentioned_users diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb deleted file mode 100644 index 012ec7ec9..000000000 --- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb +++ /dev/null @@ -1,354 +0,0 @@ -# frozen_string_literal: true - -# Redmine - project management software -# Copyright (C) 2006- Jean-Philippe Lang -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -require_relative '../../../../test_helper' - -class Redmine::WikiFormatting::MarkdownFormatterTest < ActionView::TestCase - def setup - unless Object.const_defined?(:Redcarpet) - skip "Redcarpet is not installed" - end - @formatter = Redmine::WikiFormatting::Markdown::Formatter - end - - def test_syntax_error_in_image_reference_should_not_raise_exception - assert @formatter.new("!>[](foo.png)").to_html - end - - def test_empty_image_should_not_raise_exception - assert @formatter.new("![]()").to_html - end - - # re-using the formatter after getting above error crashes the - # ruby interpreter. This seems to be related to - # https://github.com/vmg/redcarpet/issues/318 - def test_should_not_crash_redcarpet_after_syntax_error - @formatter.new("!>[](foo.png)").to_html rescue nil - assert @formatter.new("![](foo.png)").to_html.present? - end - - def test_inline_style - assert_equal "

foo

", @formatter.new("**foo**").to_html.strip - end - - def test_not_set_intra_emphasis - assert_equal "

foo_bar_baz

", @formatter.new("foo_bar_baz").to_html.strip - end - - def test_wiki_links_should_be_preserved - text = 'This is a wiki link: [[Foo]]' - assert_include '[[Foo]]', @formatter.new(text).to_html - end - - def test_redmine_links_with_double_quotes_should_be_preserved - text = 'This is a redmine link: version:"1.0"' - assert_include 'version:"1.0"', @formatter.new(text).to_html - end - - def test_should_support_syntax_highlight - text = <<~STR - ~~~ruby - def foo - end - ~~~ - STR - assert_select_in @formatter.new(text).to_html, 'pre code.ruby.syntaxhl' do - assert_select 'span.k', :text => 'def' - assert_select "[data-language='ruby']" - end - end - - def test_should_not_allow_invalid_language_for_code_blocks - text = <<~STR - ~~~foo - test - ~~~ - STR - assert_equal "
test\n
", @formatter.new(text).to_html - end - - def test_should_preserve_code_block_language_in_data_language - text = <<~STR - ~~~c-k&r - test - ~~~ - STR - assert_equal "
test\n
", @formatter.new(text).to_html - end - - def test_external_links_should_have_external_css_class - text = 'This is a [link](http://example.net/)' - assert_equal '

This is a link

', @formatter.new(text).to_html.strip - end - - def test_locals_links_should_not_have_external_css_class - text = 'This is a [link](/issues)' - assert_equal '

This is a link

', @formatter.new(text).to_html.strip - end - - def test_markdown_should_not_require_surrounded_empty_line - text = <<~STR - This is a list: - * One - * Two - STR - assert_equal "

This is a list:

\n\n", @formatter.new(text).to_html.strip - end - - def test_footnotes - text = <<~STR - This is some text[^1]. - - [^1]: This is the foot note - STR - expected = <<~EXPECTED -

This is some text1.

-
-
-
    - -
  1. -

    This is the foot note 

    -
  2. - -
-
- EXPECTED - assert_equal expected.gsub(%r{[\r\n\t]}, ''), @formatter.new(text).to_html.gsub(%r{[\r\n\t]}, '') - end - - STR_WITH_PRE = [ - # 0 - <<~STR.chomp, - # Title - - Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sed libero. - STR - # 1 - <<~STR.chomp, - ## Heading 2 - - ~~~ruby - def foo - end - ~~~ - - Morbi facilisis accumsan orci non pharetra. - - ~~~ ruby - def foo - end - ~~~ - - ``` - Pre Content: - - ## Inside pre - - inside pre block - - Morbi facilisis accumsan orci non pharetra. - ``` - STR - # 2 - <<~STR.chomp, - ### Heading 3 - - Nulla nunc nisi, egestas in ornare vel, posuere ac libero. - STR - ] - - def test_get_section_should_ignore_pre_content - text = STR_WITH_PRE.join("\n\n") - - assert_section_with_hash STR_WITH_PRE[1..2].join("\n\n"), text, 2 - assert_section_with_hash STR_WITH_PRE[2], text, 3 - end - - def test_update_section_should_not_escape_pre_content_outside_section - text = STR_WITH_PRE.join("\n\n") - replacement = "New text" - assert_equal( - [STR_WITH_PRE[0..1], "New text"].flatten.join("\n\n"), - @formatter.new(text).update_section(3, replacement) - ) - end - - STR_SETEXT_LIKE = [ - # 0 - <<~STR.chomp, - # Title - STR - # 1 - <<~STR.chomp, - ## Heading 2 - - Thematic breaks - not be confused with setext headings. - - --- - - Preceding CRLF is the default for web-submitted data. - \r - ---\r - \r - - A space-only line does not mean much. - \s - --- - - End of thematic breaks. - STR - # 2 - <<~STR.chomp, - ## Heading 2 - Nulla nunc nisi, egestas in ornare vel, posuere ac libero. - STR - ] - - STR_RARE_SETEXT_LIKE = [ - # 0 - <<~STR.chomp, - # Title - STR - # 1 - <<~STR.chomp, - ## Heading 2 - - - item - one - - - not a heading - STR - # 2 - <<~STR.chomp, - ## Heading 2 - Nulla nunc nisi, egestas in ornare vel, posuere ac libero. - STR - ] - - def test_get_section_should_ignore_setext_like_text - text = STR_SETEXT_LIKE.join("\n\n") - assert_section_with_hash STR_SETEXT_LIKE[1], text, 2 - assert_section_with_hash STR_SETEXT_LIKE[2], text, 3 - end - - def test_get_section_should_ignore_rare_setext_like_text - begin - text = STR_RARE_SETEXT_LIKE.join("\n\n") - assert_section_with_hash STR_RARE_SETEXT_LIKE[1], text, 2 - assert_section_with_hash STR_RARE_SETEXT_LIKE[2], text, 3 - rescue Minitest::Assertion => e - skip "Section extraction is currently limited, see #35037. Known error: #{e.message}" - end - assert_not "This test should be adjusted when fixing the known error." - end - - def test_should_support_underlined_text - text = 'This _text_ should be underlined' - assert_equal '

This text should be underlined

', format(text) - end - - def test_should_autolink_mails - input = "foo@example.org" - assert_equal %(

foo@example.org

), format(input) - - # The redcloth autolinker parses "plain" mailto links a bit unfortunately. - # We do the best we can here... - input = "mailto:foo@example.org" - assert_equal %(

mailto:foo@example.org

), format(input) - end - - def test_should_fixup_mailto_links - input = "" - assert_equal %(

foo@example.org

), format(input) - end - - def test_should_fixup_autolinked_user_references - text = "user:user@example.org" - assert_equal "

#{text}

", format(text) - - text = "@user@example.org" - assert_equal "

#{text}

", format(text) - end - - def test_should_fixup_autolinked_hires_files - text = "printscreen@2x.png" - assert_equal "

#{text}

", format(text).strip - end - - def test_should_allow_links_with_safe_url_schemes - safe_schemes = %w(http https ftp) - link_safe_schemes = %w(ssh foo) - - (safe_schemes + link_safe_schemes).each do |scheme| - input = "[#{scheme}](#{scheme}://example.com)" - expected = %(

#{scheme}

) - - assert_equal expected, format(input) - end - end - - def test_should_not_allow_links_with_unsafe_url_schemes - unsafe_schemes = %w(data javascript vbscript) - - unsafe_schemes.each do |scheme| - input = "[#{scheme}](#{scheme}:something)" - assert_equal "

#{input}

", format(input) - end - end - - def test_should_allow_autolinks_with_safe_url_schemes - safe_schemes = %w(http https ftp) - link_safe_schemes = %w(ssh foo) - - (safe_schemes + link_safe_schemes).each do |scheme| - input = "#{scheme}://example.org" - expected = %(

#{input}

) - - assert_equal expected, format(input) if safe_schemes.include?(scheme) - assert_equal expected, format("<#{input}>") - end - end - - def test_should_not_autolink_unsafe_schemes - unsafe_schemes = %w(data javascript vbscript) - - unsafe_schemes.each do |scheme| - link = "#{scheme}:something" - - assert_equal "

#{link}

", format(link) - assert_equal "

#{link}

", format("<#{link}>") - end - end - - private - - def format(text) - @formatter.new(text).to_html.strip - end - - def assert_section_with_hash(expected, text, index) - result = @formatter.new(text).get_section(index) - - assert_kind_of Array, result - assert_equal 2, result.size - assert_equal expected, result.first, "section content did not match" - assert_equal ActiveSupport::Digest.hexdigest(expected), result.last, "section hash did not match" - end -end diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb deleted file mode 100644 index e567ca097..000000000 --- a/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -# Redmine - project management software -# Copyright (C) 2006- Jean-Philippe Lang -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -require_relative '../../../../test_helper' - -class Redmine::WikiFormatting::MarkdownHtmlParserTest < ActiveSupport::TestCase - def setup - @parser = Redmine::WikiFormatting::Markdown::HtmlParser - end - - def test_should_convert_tags - assert_equal( - 'A **simple** html snippet.', - @parser.to_text('

A simple html snippet.

') - ) - assert_equal( - 'foo [bar](http://example.com/) baz', - @parser.to_text('foobarbaz') - ) - assert_equal( - 'foo http://example.com/ baz', - @parser.to_text('foobaz') - ) - assert_equal( - 'foobarbaz', - @parser.to_text('foobarbaz') - ) - assert_equal( - 'foobaz', - @parser.to_text('foobaz') - ) - end - - def test_html_tables_conversion - assert_equal( - "*th1*\n*th2*\n\ntd1\ntd2", - @parser.to_text('
th1th2
td1td2
') - ) - end -end