Marius Balteanu
40b6dce2de
Correctly handle exception messages in macros ( #42326 ).
...
Patch by Holger Just (user:hjust).
git-svn-id: https://svn.redmine.org/redmine/trunk@23519 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-03-06 21:42:27 +00:00
Marius Balteanu
5851f65bb8
Fixes rubocop offenses ( #40197 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23250 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-11 18:41:12 +00:00
Marius Balteanu
c0bb500242
Disables @syntax_highlighter@ plugin shipped by commonmark ( #40197 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23249 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-11 18:29:46 +00:00
Marius Balteanu
542a493352
Simplify code ( #40197 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23248 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-11 18:29:12 +00:00
Marius Balteanu
a5d263dba8
Updates commonmark gem version to 1.1.5 which switches from libcmark-gfm to comrak/Rust ( #40197 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23247 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-11 18:28:41 +00:00
Marius Balteanu
39401e4b95
Reverts r23190-r23187 because the CI build fails with error "ERROR: Failed to build gem native extension" ( #40197 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-03 18:34:06 +00:00
Marius Balteanu
229d921391
Disable syntax_highlighter plugin shipped by commonmark ( #40197 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23190 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-03 12:05:27 +00:00
Marius Balteanu
c630acfa6f
Simplify code ( #40197 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23189 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-03 12:03:32 +00:00
Marius Balteanu
da87320ebc
Updates commonmark gem version to 1.1.5 which switches from libcmark-gfm to comrak/Rust.
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23188 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-11-03 12:02:39 +00:00
Go MAEDA
90f34d9d47
Fix reference to the deleted Redcarpet-based Redmine::WikiFormatting::Markdown::HtmlParser class by porting the HtmlParser class for the CommonMark formatter ( #40149 , #41513 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23154 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-21 05:45:37 +00:00
Go MAEDA
5407fea873
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
2024-10-20 07:51:38 +00:00
Marius Balteanu
d1008280d8
Renames and improves methods provided by @IconsHelper@ ( #23980 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23145 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-19 10:06:26 +00:00
Go MAEDA
52d215de43
Add underline button to CommonMark Markdown toolbar ( #40939 ).
...
Contributed by Yasu Saku (user:skys).
git-svn-id: https://svn.redmine.org/redmine/trunk@23106 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-09 14:04:57 +00:00
Marius Balteanu
166540d743
Replaces icon-expanded and icon-collapsed with SVG icons ( #23980 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@23041 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-09-08 17:25:02 +00:00
Go MAEDA
2fe36c4128
Fix RuboCop offense Style/RedundantInterpolationUnfreeze ( #39887 ).
...
Since interpolated strings are always unfrozen in Ruby 3.0 and later, the use of `+""` is now redundant.
git-svn-id: https://svn.redmine.org/redmine/trunk@23001 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-09-01 00:38:01 +00:00
Go MAEDA
578360fdab
Add support for quoted arguments containing commas in wiki macros ( #40014 ).
...
Patch by Yasu Saku (user:skys).
git-svn-id: https://svn.redmine.org/redmine/trunk@22959 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-20 02:13:21 +00:00
Go MAEDA
b3d1deeece
Fix RuboCop offense Layout/SpaceInsideParens, one of the offenses enabled in rubocop-rails-omakase ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22954 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 08:45:54 +00:00
Go MAEDA
6e21ae7209
Fix RuboCop offense Layout/SpaceAfterComma, one of the offenses enabled in rubocop-rails-omakase ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22953 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 08:36:05 +00:00
Go MAEDA
de76bb3a4a
Fix RuboCop offense Layout/EmptyLinesAroundClassBody, one of the offenses enabled in rubocop-rails-omakase ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22949 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-12 07:42:12 +00:00
Go MAEDA
c0dc6ef4d0
Prevent issue links with double hash (##nnn) from being recognized as ATX headings ( #40716 ).
...
Patch by daijiro fukuda (user:daipom).
git-svn-id: https://svn.redmine.org/redmine/trunk@22906 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-06 07:44:05 +00:00
Go MAEDA
f143314584
Fix RuboCop offense Style/RedundantRegexpEscape in lib/redmine/wiki_formatting/section_helper.rb ( #40716 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22905 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-06 07:35:10 +00:00
Go MAEDA
b42d7984b1
Fix RuboCop offense Style/SuperArguments ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22842 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-23 11:25:16 +00:00
Marius Balteanu
b4bfb6b581
Replaces use of Digest::MD5 / Digest::SHA1 with ActiveSupport::Digest ( #35217 ).
...
Patch by Jens Krämer (@jkraemer).
git-svn-id: https://svn.redmine.org/redmine/trunk@22816 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-05-07 18:36:46 +00:00
Go MAEDA
1c17ae733d
Fix initial_page_content method to avoid referencing @page instance variable in wiki formatting helpers ( #40513 ).
...
Patch by Takuya Kodama (@otegami).
git-svn-id: https://svn.redmine.org/redmine/trunk@22781 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-04-10 02:48:29 +00:00
Go MAEDA
bcb2ebb6a0
Fix RuboCop offense Layout/SpaceInsideStringInterpolation ( #39111 , #40137 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22771 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-03-08 07:13:18 +00:00
Marius Balteanu
38d950df55
Remove current year from source file copyright headers and update year in footer to 2024 ( #40043 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-26 22:55:54 +00:00
Marius Balteanu
4607e90b43
Updates JS toolbar help button to use the new route ( #39111 , #40137 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22722 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-19 20:58:13 +00:00
Go MAEDA
ba2c48717d
Fix performance issue with email address auto-linking in the default ("none") formatter ( #40193 ).
...
Patch by Go MAEDA (@maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@22684 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-07 01:27:10 +00:00
Go MAEDA
fca8cf6c0f
Fix RuboCop offense Style/RedundantFreeze ( #38585 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22652 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-27 06:06:29 +00:00
Go MAEDA
5b77092be4
Replace regular expression matches with String#start_with? / end_with? ( #40010 ).
...
Patch by Go MAEDA (@maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@22605 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-11 11:27:25 +00:00
Marius Balteanu
1f7f1a2db7
Allow consecutive footnote references inTextile ( #39884 ).
...
Patch by @hjust.
git-svn-id: https://svn.redmine.org/redmine/trunk@22546 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-22 01:44:02 +00:00
Go MAEDA
380444f085
Fix RuboCop offense Performance/StringIdentifierArgument ( #39888 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22535 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-20 09:23:05 +00:00
Go MAEDA
c51e4937e7
Fix RuboCop offense Style/SuperWithArgsParentheses ( #39887 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22530 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-20 07:15:11 +00:00
Go MAEDA
7a06338a04
Fix CommonMark Markdown help page to reflect user's language setting ( #39755 ).
...
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22496 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-06 14:26:57 +00:00
Go MAEDA
090323b7a0
Fixes i18n call in macro error fallback ( #37668 ).
...
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@22331 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-06 08:30:33 +00:00
Go MAEDA
303abf0783
Use uri_with_link_safe_scheme? in Redcloth3 ( #38807 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22303 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-09-18 07:55:40 +00:00
Go MAEDA
ba181c7328
HTML-escape the entire tag content of escaped HTML tags in textile ( #38807 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22302 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-09-18 07:45:03 +00:00
Go MAEDA
5e07a72413
Adapt markdown autolink behavior to that of common_mark ( #38806 ).
...
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22298 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-09-18 05:07:22 +00:00
Go MAEDA
2415c9f5d7
Fix exception raised during thumbnail macro to image tag conversion in emails ( #38697 ).
...
Patch by Y saku and Mizuki ISHIKAWA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22285 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-08-30 07:30:16 +00:00
Go MAEDA
0befc3a23c
Fix RuboCop offense Style/RedundantSelfAssignmentBranch ( #36919 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22263 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-06-29 01:37:24 +00:00
Go MAEDA
e0e751f5bc
Fix RuboCop offense Style/RedundantRegexpArgument ( #36919 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22262 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-06-29 00:39:58 +00:00
Go MAEDA
95f3b5cf38
Revert the change made in error in r22197 ( #38435 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-16 08:31:50 +00:00
Go MAEDA
0f6507a607
Change the notation of "contains any of" filter operator to "*~" ( #38435 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-04-16 08:02:30 +00:00
Go MAEDA
fe71cb5bbe
Fix RuboCop offense Lint/MissingSuper ( #36919 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22147 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-03-24 09:34:40 +00:00
Go MAEDA
57544d6d4b
Update CommonMarker extension options link
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22084 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-31 23:55:55 +00:00
Go MAEDA
e010d90207
Fix RuboCop offense Performance/RedundantSplitRegexpArgument ( #38146 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22033 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:33:32 +00:00
Go MAEDA
62a930cc65
Fix RuboCop offense Performance/RedundantMatch ( #38146 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22032 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:31:57 +00:00
Go MAEDA
70ef2a3db1
Fix RuboCop offense Performance/ConstantRegexp ( #38146 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22029 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:26:31 +00:00
Go MAEDA
3942177f49
Fix RuboCop offense Performance/BlockGivenWithExplicitBlock ( #38146 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22027 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:20:52 +00:00
Go MAEDA
fcd4f7f6c9
CommonMark Markdown formatter does not support min-width, max-width, min-height, and max-height CSS properties ( #38073 ).
...
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22025 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:11:04 +00:00