Jean-Philippe Lang
e9d5b0b8dc
White list protocols allowed for Textile links ( #32934 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@19489 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-02 10:19:16 +00:00
Go MAEDA
6611f5bf5d
Make languages in Highlighted code button in toolbar customizable ( #32528 ).
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19429 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-14 14:38:48 +00:00
Toshi MARUYAMA
5876324372
filter all possibly class values on code tags in Textile ( #25742 )
...
Contributed by Holger Just from Planio.
git-svn-id: http://svn.redmine.org/redmine/trunk@19333 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-12-05 11:25:24 +00:00
Go MAEDA
fc2e4c1eba
Fix that receiving HTML email fails if it contains a link without an href attribute ( #31695 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-09 06:06:05 +00:00
Toshi MARUYAMA
9908565bde
cleanup: rubocop: fix Layout/AlignArguments in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18925 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-06 12:03:47 +00:00
Toshi MARUYAMA
adff3bcb7e
code cleanup: rubocop: fix Layout/CommentIndentation in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18773 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 12:25:46 +00:00
Toshi MARUYAMA
57a66e950c
code cleanup: rubocop: fix Layout/EmptyLines in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18742 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 07:27:46 +00:00
Toshi MARUYAMA
e3397db933
code cleanup: rubocop: fix Style/WhileUntilModifier in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18738 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 07:26:59 +00:00
Toshi MARUYAMA
30964255f1
code cleanup: rubocop: fix Style/UnlessElse in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18737 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 07:26:45 +00:00
Toshi MARUYAMA
18442d568a
code layout clean up lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18721 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-17 16:40:08 +00:00
Toshi MARUYAMA
8bac080b8c
code cleanup: rubocop: fix Style/CharacterLiteral and 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
2019-10-17 16:39:55 +00:00
Toshi MARUYAMA
e8b06af277
code cleanup: rubocop: fix Layout/EmptyLinesAroundMethodBody in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18696 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-16 14:36:55 +00:00
Toshi MARUYAMA
3f691ee4c2
code cleanup: rubocop: fix Layout/LeadingCommentSpace in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18690 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-16 13:00:41 +00:00
Toshi MARUYAMA
c5e2c064f2
code cleanup: rubocop: fix Layout/AccessModifierIndentation in lib/redmine/wiki_formatting/textile/formatter.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18686 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-15 17:25:42 +00:00
Toshi MARUYAMA
38bf3f5024
code cleanup: rubocop: fix Layout/AccessModifierIndentation and 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
2019-10-15 17:25:31 +00:00
Toshi MARUYAMA
d7d85cd85f
code cleanup: rubocop: fix Layout/SpaceInsideStringInterpolation in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18684 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-15 17:25:19 +00:00
Toshi MARUYAMA
c82054a651
code cleanup: rubocop: fix Style/IfWithSemicolon in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18680 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-15 11:48:37 +00:00
Toshi MARUYAMA
695a03b3eb
code cleanup: rubocop: fix Layout/IndentAssignment in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18679 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-15 11:48:25 +00:00
Toshi MARUYAMA
76be6f712f
code cleanup: rubocop: fix Layout/EmptyLinesAroundBlockBody in lib/redmine/wiki_formatting/textile/redcloth3.rb
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18678 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-15 11:48:13 +00:00
Go MAEDA
d50f0e83fb
Better handling of HTML tables when creating an issue from an email ( #31231 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18383 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-24 06:57:03 +00:00
Go MAEDA
31e8e736f3
Code cleanup: RuboCop: Layout/TrailingBlankLines
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18367 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-14 03:02:20 +00:00
Go MAEDA
f5c7a4a420
Convert HTML links to Textile/Markdown links when creating an issue from an email ( #31695 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@18361 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-11 05:01:37 +00:00
Jean-Philippe Lang
29bd7edca4
Fix html encoding ( #31520 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18247 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-10 11:47:24 +00:00
Go MAEDA
9eafc3e9a2
Remove trailing whitespaces from lib ( #31506 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18231 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-06 14:50:14 +00:00
Go MAEDA
4082069c75
Update copyright year.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
30e341db69
Support frozen_string_literal in lib/**/*.rb ( #26561 ).
...
Contributed by Pavel Rosický.
git-svn-id: http://svn.redmine.org/redmine/trunk@17988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 16:36:34 +00:00
Go MAEDA
5861160ffc
Add "frozen_string_literal: false" for all files ( #26561 ).
...
This will be changed to true in the future.
git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Go MAEDA
019b640d81
Reverts r17891 ( #30099 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@17939 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-10 23:37:57 +00:00
Go MAEDA
193b02567b
URLs end with "-" are rendered incorrectly in Textile ( #30259 ).
...
Patch by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17917 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-03 15:18:04 +00:00
Go MAEDA
ef9c879718
Multiple blank lines in pre tags are not preserved in Textile ( #30099 ).
...
Patch by Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@17891 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-20 10:31:30 +00:00
Go MAEDA
cbc34f2c5b
Preview URL in Wiki Toolbar should be escaped ( #30758 ).
...
Patch by Vincent Robert.
git-svn-id: http://svn.redmine.org/redmine/trunk@17856 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-11 15:55:31 +00:00
Go MAEDA
7fbcb8c908
Tags start with 'pre' are handled as 'pre' tag in Textile ( #8395 ).
...
Patch by Takenori TAKAKI and Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17636 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-11-26 04:40:09 +00:00
Go MAEDA
e8243d213d
\f or \v character in Textile markup may cause RegexpError exception ( #29756 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17603 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-28 11:01:54 +00:00
Jean-Philippe Lang
eb1e6d8c26
Syntax highlighter: replace CodeRay with Rouge ( #24681 ).
...
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17532 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-09-29 06:57:40 +00:00
Jean-Philippe Lang
b9fa262165
Adds preview option to the wiki toolbar ( #27758 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17521 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-09-26 07:27:30 +00:00
Go MAEDA
26f4b5181f
Fix: Textile phrase modifiers break wiki macros ( #29247 ).
...
Patch by Stephan Wenzel.
git-svn-id: http://svn.redmine.org/redmine/trunk@17450 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-07-21 00:16:27 +00:00
Jean-Philippe Lang
270b6c4d7e
User link syntax (user:login) doesn't work for logins consisting of an email adress ( #26443 ).
...
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17392 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-06-17 05:45:17 +00:00
Go MAEDA
00b85dc8d9
Fix: Syntax highlighter does not work if language name is single-quoted ( #28469 ).
...
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17322 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-05-02 02:27:10 +00:00
Go MAEDA
e4142a8338
Allow "max-height", "max-width", "min-height" and "min-width" CSS properties 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
2018-01-11 01:32:18 +00:00
Jean-Philippe Lang
7fd04e1f8d
Update copyright.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
ca1fbf1ea1
Render all possible inline textile images even if an invalid one exists ( #26157 ).
...
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@16668 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-17 07:45:08 +00:00
Jean-Philippe Lang
7f4767418b
Generate markup for uploaded image dropped into wiki-edit textarea ( #26071 ).
...
Patch by Felix Gliesche.
git-svn-id: http://svn.redmine.org/redmine/trunk@16643 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-07 21:01:45 +00:00
Jean-Philippe Lang
4f2c5a9945
Filter arbitrary class names and ids in rendered HTML output ( #25503 ).
...
* 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
2017-04-06 16:41:52 +00:00
Jean-Philippe Lang
99fa41011f
Add kbd to ALLOWED_TAGS ( #25503 ).
...
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@16500 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-04-06 16:34:52 +00:00
Jean-Philippe Lang
ddef0ad7c1
Moves redcloth3.rb to lib/redmine/wiki_formatting/textile.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@16358 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-03 17:16:53 +00:00
Jean-Philippe Lang
cda9c63d9c
Updates copyright for 2016.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
0a8e4b1628
Don't duplicate tags.
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14316 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-16 18:28:28 +00:00
Jean-Philippe Lang
e911ce7cb4
Remove style tags from html body ( #15716 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14315 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-16 18:23:25 +00:00
Jean-Philippe Lang
3ae42cb326
Better handle html-only emails ( #16962 ).
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14313 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-15 21:16:42 +00:00
Toshi MARUYAMA
06ea3e48eb
rename textile wiki syntax help files ( #16373 )
...
git-svn-id: http://svn.redmine.org/redmine/trunk@14187 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-04-20 07:52:57 +00:00