Go MAEDA
|
88cb98cda8
|
Fix RuboCop offenses Layout/EmptyLinesAroundModuleBody, Layout/EmptyLinesAroundClassBody, and Layout/TrailingEmptyLines in html_sanitizer.rb (#37750).
git-svn-id: https://svn.redmine.org/redmine/trunk@21912 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-10-20 07:34:21 +00:00 |
|
Go MAEDA
|
7c561362cf
|
Add a copyright header (#37750).
git-svn-id: https://svn.redmine.org/redmine/trunk@21911 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-10-20 07:23:01 +00:00 |
|
Go MAEDA
|
1d9f5c6742
|
Escape tags that start with pre (#37767).
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21902 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-10-17 13:35:20 +00:00 |
|
Marius Balteanu
|
39151a89b6
|
Introduces a standalone html sanitizer class (#37750).
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21900 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-10-04 19:49:00 +00:00 |
|
Marius Balteanu
|
ba635eace9
|
Escape blockquote citation in textile formatting (#37751).
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21894 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-10-04 18:58:37 +00:00 |
|
Marius Balteanu
|
2faadcba8b
|
Allow select custom CSS properties (#37237).
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21850 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-09-26 22:35:48 +00:00 |
|
Marius Balteanu
|
0bb977cb41
|
Add rel="noopener" to all external links with a target attribute (#37713).
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21849 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-09-26 22:34:44 +00:00 |
|
Go MAEDA
|
20ed193d93
|
Thumbnail macro does not work when a file is attached and preview is displayed immediately (#37379).
Patch by Mizuki ISHIKAWA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21716 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-07-19 13:57:04 +00:00 |
|
Marius Balteanu
|
d7a8f6900d
|
Add frozen_string_literal and copyright (#37119).
git-svn-id: https://svn.redmine.org/redmine/trunk@21683 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-06-25 21:33:58 +00:00 |
|
Marius Balteanu
|
691dc3e3b3
|
Fix rubocop warnings (#37119).
git-svn-id: https://svn.redmine.org/redmine/trunk@21654 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-06-17 10:31:36 +00:00 |
|
Marius Balteanu
|
1a7b2fe907
|
Move methods related to wiki section to a helper file and include it in all 3 formatters (#37119).
git-svn-id: https://svn.redmine.org/redmine/trunk@21643 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-06-16 21:39:27 +00:00 |
|
Go MAEDA
|
637756eef7
|
Fix RuboCop offense Rails/RootPublicPath (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@21633 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-06-14 13:40:46 +00:00 |
|
Marius Balteanu
|
e09426552c
|
Update footnotes markup after commonmarker gem update (#35892).
git-svn-id: https://svn.redmine.org/redmine/trunk@21612 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-05-28 09:42:15 +00:00 |
|
Marius Balteanu
|
b5673a0522
|
Fix Rubocop warnings.
git-svn-id: https://svn.redmine.org/redmine/trunk@21596 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-05-17 21:16:38 +00:00 |
|
Marius Balteanu
|
a9e2d1aeb5
|
Fix rendering invalid URI fails with exception in CommonMark Markdown (#36958).
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@21558 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-05-03 16:50:20 +00:00 |
|
Go MAEDA
|
b51d40fe38
|
Comments for Textile text formatting (#20511).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21457 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-03-17 03:55:24 +00:00 |
|
Marius Balteanu
|
380a3b0345
|
Enable task list items for Common Mark text formatting (#35742).
git-svn-id: http://svn.redmine.org/redmine/trunk@21383 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-01-22 09:24:43 +00:00 |
|
Marius Balteanu
|
2140b7c5a5
|
Makes Markdown and CommonMark formatters independent of each other (#32424).
git-svn-id: http://svn.redmine.org/redmine/trunk@21345 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-01-04 18:57:00 +00:00 |
|
Go MAEDA
|
3686b77eb6
|
Update copyright year in source files to 2022 (#36379).
git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2022-01-02 05:29:10 +00:00 |
|
Marius Balteanu
|
87097f2204
|
Move preparation code to redmine/preparation.rb (#29914, #32938).
Patch by Takashi Kato.
git-svn-id: http://svn.redmine.org/redmine/trunk@21284 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-11-17 20:45:39 +00:00 |
|
Marius Balteanu
|
1245708ba7
|
Fix typo in class 'icon-expended' (#36149).
Patch by Bernhard Rohloff.
git-svn-id: http://svn.redmine.org/redmine/trunk@21275 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-11-08 20:14:49 +00:00 |
|
Marius Balteanu
|
0dd9fbb806
|
Update .rubocop_todo and fix Style/AndOr offense (#29914, #32938).
git-svn-id: http://svn.redmine.org/redmine/trunk@21253 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-10-20 22:21:19 +00:00 |
|
Marius Balteanu
|
7125fd70ce
|
Split multiple classes and modules that existed in the same file (#29914, #32938).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21252 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-10-20 22:18:49 +00:00 |
|
Marius Balteanu
|
715ffcda43
|
Append two spaces to lines when importing an email on CommonMark with hardbreaks disabled (#32424).
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21228 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-10-03 19:20:04 +00:00 |
|
Marius Balteanu
|
09618a274b
|
Make hardbreaks behaviour configurable in config/configuration.yml (#32424).
git-svn-id: http://svn.redmine.org/redmine/trunk@21227 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-10-03 05:17:18 +00:00 |
|
Marius Balteanu
|
b7798e6e1c
|
Unify code block and add "data-language" attribute with the user-supplied language for Textile and Markdown formaters (#35104).
Patch by Martin Cizek.
git-svn-id: http://svn.redmine.org/redmine/trunk@21183 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-08-15 21:00:16 +00:00 |
|
Marius Balteanu
|
5699253da6
|
Add "data-language" attribute to code block with the user-supplied language for CommonMark formater (#35104, #32424).
Patch by Martin Cizek.
git-svn-id: http://svn.redmine.org/redmine/trunk@21182 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-08-15 20:59:04 +00:00 |
|
Marius Balteanu
|
12b2dd3098
|
Preserve the code block and remove the class from it when the language is not supported in CommonMark formatter (#35765, 32424).
git-svn-id: http://svn.redmine.org/redmine/trunk@21181 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-08-15 20:57:38 +00:00 |
|
Marius Balteanu
|
e1e4736e97
|
Fixed Replace class var @@allowlist with a class instance var (#32424).
git-svn-id: http://svn.redmine.org/redmine/trunk@21166 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-08-11 21:52:37 +00:00 |
|
Marius Balteanu
|
5b0a10cc1a
|
Replace deprecated Sanitize keywords (#32424).
Patch by Martin Cizek.
git-svn-id: http://svn.redmine.org/redmine/trunk@21162 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-08-11 21:50:16 +00:00 |
|
Marius Balteanu
|
e8c911577f
|
Relax allowed protocols in links by denying specific protocols for CommonMark text formatting (#32424).
Patch by Martin Cizek.
git-svn-id: http://svn.redmine.org/redmine/trunk@21161 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-08-11 21:49:27 +00:00 |
|
Marius Balteanu
|
9af2ba2c13
|
Adds CommonMark Markdown (GitHub Flavored) as third text formatting option (#32424).
Patch by Jens Krämer.
git-svn-id: http://svn.redmine.org/redmine/trunk@21156 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-08-11 21:40:56 +00:00 |
|
Go MAEDA
|
f5ac84a516
|
Inline image in Textile is not displayed if the image URL contains ampersands (#35441).
Contributed by Yuichi HARADA.
git-svn-id: http://svn.redmine.org/redmine/trunk@21101 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-07-28 08:25:15 +00:00 |
|
Go MAEDA
|
ec3527102d
|
Remove deprecated WikiContent::Version (#35031).
git-svn-id: http://svn.redmine.org/redmine/trunk@21002 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-05-15 05:51:14 +00:00 |
|
Go MAEDA
|
183642ba20
|
Markdown text sections broken by thematic breaks (horizontal rules) (#35036).
Patch by Martin Cizek.
git-svn-id: http://svn.redmine.org/redmine/trunk@20998 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-05-14 09:39:12 +00:00 |
|
Go MAEDA
|
3e36b5c452
|
Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2021-03-25 06:58:56 +00:00 |
|
Toshi MARUYAMA
|
690135e1c5
|
shorten long line of lib/redmine/wiki_formatting/macros.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20638 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-12-12 15:49:29 +00:00 |
|
Toshi MARUYAMA
|
e6b7534345
|
shorten long line of lib/redmine/wiki_formatting/textile/helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20610 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-12-10 13:34:07 +00:00 |
|
Toshi MARUYAMA
|
3e45498005
|
shorten long line of lib/redmine/wiki_formatting/markdown/helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20608 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-12-10 13:33:52 +00:00 |
|
Toshi MARUYAMA
|
52d8b5549e
|
add empty line after guard clause to lib/redmine/wiki_formatting/macros.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20230 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-11-03 14:54:59 +00:00 |
|
Toshi MARUYAMA
|
bfa5bf812a
|
add empty line after guard clause to lib/redmine/wiki_formatting/markdown/formatter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20229 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-11-03 14:54:51 +00:00 |
|
Toshi MARUYAMA
|
385ac98c9d
|
add empty line after guard clause to lib/redmine/wiki_formatting/textile/formatter.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20227 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-10-28 14:43:21 +00:00 |
|
Go MAEDA
|
78dfef0978
|
Replace gsub with tr, delete, or squeeze (#34161).
git-svn-id: http://svn.redmine.org/redmine/trunk@20176 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-10-24 06:46:50 +00:00 |
|
Go MAEDA
|
fdba424d77
|
Use match? instead of =~ when MatchData is not used (#34150).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20168 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-10-23 00:13:38 +00:00 |
|
Toshi MARUYAMA
|
3db455b048
|
remove spaces inside {} of lib/redmine/wiki_formatting/macros.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20062 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-09-21 13:04:09 +00:00 |
|
Go MAEDA
|
e84ab8fcb6
|
Don't internationalize error messages used when defining a macro (#33426).
git-svn-id: http://svn.redmine.org/redmine/trunk@20015 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-09-11 00:42:49 +00:00 |
|
Go MAEDA
|
58eca8190e
|
Internationalize error messages for wiki macros (#33426).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@20013 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-09-10 07:19:21 +00:00 |
|
Toshi MARUYAMA
|
a830a23d7b
|
fix source indent of lib/redmine/wiki_formatting/textile/redcloth3.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19850 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-07-03 11:45:37 +00:00 |
|
Jean-Philippe Lang
|
895fc12d56
|
XSS vulnerabilities in textile links (#32934).
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@19672 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-04-05 14:41:33 +00:00 |
|
Jean-Philippe Lang
|
d257990868
|
Reverts r19489 (#32934).
git-svn-id: http://svn.redmine.org/redmine/trunk@19671 e93f8b46-1217-0410-a6f0-8f06a7374b81
|
2020-04-05 14:35:44 +00:00 |
|