summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting
Commit message (Collapse)AuthorAgeFilesLines
...
* code cleanup: rubocop: fix Style/WhileUntilModifier in ↵Toshi MARUYAMA2019-10-191-3/+3
| | | | | | lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18738 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/UnlessElse in ↵Toshi MARUYAMA2019-10-191-2/+1
| | | | | | lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18737 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code layout clean up lib/redmine/wiki_formatting/textile/redcloth3.rbToshi MARUYAMA2019-10-171-8/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18721 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/CharacterLiteral and ↵Toshi MARUYAMA2019-10-171-2/+2
| | | | | | Style/ParenthesesAroundCondition in lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18720 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/EmptyLinesAroundMethodBody in ↵Toshi MARUYAMA2019-10-161-2/+0
| | | | | | lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18696 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/LeadingCommentSpace in ↵Toshi MARUYAMA2019-10-161-3/+3
| | | | | | lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18690 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/AccessModifierIndentation in ↵Toshi MARUYAMA2019-10-151-1/+1
| | | | | | lib/redmine/wiki_formatting/textile/formatter.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18686 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/AccessModifierIndentation and ↵Toshi MARUYAMA2019-10-151-3/+2
| | | | | | Layout/EmptyLinesAroundAccessModifier in lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/SpaceInsideStringInterpolation in ↵Toshi MARUYAMA2019-10-151-65/+65
| | | | | | lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18684 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Style/IfWithSemicolon in ↵Toshi MARUYAMA2019-10-151-1/+1
| | | | | | lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18680 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/IndentAssignment in ↵Toshi MARUYAMA2019-10-151-15/+12
| | | | | | lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18679 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/EmptyLinesAroundBlockBody in ↵Toshi MARUYAMA2019-10-151-4/+0
| | | | | | lib/redmine/wiki_formatting/textile/redcloth3.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18678 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Better handling of HTML tables when creating an issue from an email (#31231).Go MAEDA2019-08-242-0/+4
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18383 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup: RuboCop: Layout/TrailingBlankLinesGo MAEDA2019-08-141-1/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18367 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Convert HTML links to Textile/Markdown links when creating an issue from an ↵Go MAEDA2019-08-113-3/+8
| | | | | | | | | email (#31695). Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18361 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Wiki page collapse block image is not displayed in exported PDF (#30162).Jean-Philippe Lang2019-06-201-3/+11
| | | | | | Patch by Jun NAITOH. git-svn-id: http://svn.redmine.org/redmine/trunk@18307 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Issue macro for flexible linking to issues (#29489).Jean-Philippe Lang2019-06-201-0/+27
| | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@18297 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Text may unexpectedly be enclosed in pre tags when an issue is created via ↵Jean-Philippe Lang2019-06-201-2/+2
| | | | | | | | HTML email (#31232). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18268 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix html encoding (#31520).Jean-Philippe Lang2019-06-101-1/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18247 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove trailing whitespaces from lib (#31506).Go MAEDA2019-06-063-95/+95
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18231 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-258-8/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup: Use Loofah.remove_extraneous_whitespace instead of deprecated ↵Go MAEDA2019-04-211-1/+1
| | | | | | Loofah::Helpers.remove_extraneous_whitespace. git-svn-id: http://svn.redmine.org/redmine/trunk@18070 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use Regexp#match? to reduce allocations of MatchData object (#28940).Go MAEDA2019-03-271-2/+2
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in lib/**/*.rb (#26561).Go MAEDA2019-03-179-26/+26
| | | | | | | Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17988 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-159-0/+18
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r17891 (#30099).Go MAEDA2019-03-101-5/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@17939 e93f8b46-1217-0410-a6f0-8f06a7374b81
* URLs end with "-" are rendered incorrectly in Textile (#30259).Go MAEDA2019-03-031-3/+3
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17917 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Multiple blank lines in pre tags are not preserved in Textile (#30099).Go MAEDA2019-02-201-4/+5
| | | | | | | Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@17891 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Preview URL in Wiki Toolbar should be escaped (#30758).Go MAEDA2019-02-112-2/+2
| | | | | | | Patch by Vincent Robert. git-svn-id: http://svn.redmine.org/redmine/trunk@17856 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Tags start with 'pre' are handled as 'pre' tag in Textile (#8395).Go MAEDA2018-11-261-1/+1
| | | | | | | Patch by Takenori TAKAKI and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* \f or \v character in Textile markup may cause RegexpError exception (#29756).Go MAEDA2018-10-281-1/+1
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17603 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Syntax highlighter: replace CodeRay with Rouge (#24681).Jean-Philippe Lang2018-09-291-0/+1
| | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17532 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds preview option to the wiki toolbar (#27758).Jean-Philippe Lang2018-09-262-5/+6
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17521 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix: Textile phrase modifiers break wiki macros (#29247).Go MAEDA2018-07-211-1/+1
| | | | | | | Patch by Stephan Wenzel. git-svn-id: http://svn.redmine.org/redmine/trunk@17450 e93f8b46-1217-0410-a6f0-8f06a7374b81
* User link syntax (user:login) doesn't work for logins consisting of an email ↵Jean-Philippe Lang2018-06-172-13/+6
| | | | | | | | adress (#26443). Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17392 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable and add underline button to the toolbar for Markdown formatting (#28169).Jean-Philippe Lang2018-06-162-3/+5
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17385 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix: Syntax highlighter does not work if language name is single-quoted ↵Go MAEDA2018-05-021-1/+1
| | | | | | | | | (#28469). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17322 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Markdown pre-block could derive incorrect wiki sections (#25299).Jean-Philippe Lang2018-04-071-8/+6
| | | | | | Patch by Kiichi Ozaki. git-svn-id: http://svn.redmine.org/redmine/trunk@17266 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable lax_spacing for markdown formatting (#28119).Go MAEDA2018-02-161-1/+2
| | | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow "max-height", "max-width", "min-height" and "min-width" CSS properties ↵Go MAEDA2018-01-111-1/+1
| | | | | | | | | in Textile (#26552). Patch by Michael Gerz and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17173 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set a default size for macro thumbnails different from the preview thumbnails.Jean-Philippe Lang2017-07-191-2/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16829 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-258-8/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Render all possible inline textile images even if an invalid one exists ↵Jean-Philippe Lang2017-06-171-1/+1
| | | | | | | | (#26157). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@16668 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Generate markup for uploaded image dropped into wiki-edit textarea (#26071).Jean-Philippe Lang2017-06-072-0/+2
| | | | | | Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@16643 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Link to user in wiki syntax (#4179).Jean-Philippe Lang2017-06-071-0/+4
| | | | | | Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Filter arbitrary class names and ids in rendered HTML output (#25503).Jean-Philippe Lang2017-04-063-5/+19
| | | | | | | | | * Disallow setting arbitrary classes and ids via Textile syntax * Only allow valid/supported languages for syntax highlighted code blocks Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16502 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add kbd to ALLOWED_TAGS (#25503).Jean-Philippe Lang2017-04-061-1/+1
| | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16500 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moves redcloth3.rb to lib/redmine/wiki_formatting/textile.Jean-Philippe Lang2017-03-032-1/+1212
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16358 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Modify circular inclusion test to use page.id instead of page.title (#24869).Jean-Philippe Lang2017-01-191-2/+2
| | | | | | Patch by Michael Esemplare. git-svn-id: http://svn.redmine.org/redmine/trunk@16227 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Limits the schemes that inline images can use (#22926).Jean-Philippe Lang2016-06-011-0/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15433 e93f8b46-1217-0410-a6f0-8f06a7374b81