Commit Graph

262 Commits

Author SHA1 Message Date
Marius Balteanu
d745168d57 Enables CJK friendly emphasis extension for CommonMark (#43234).
Patch by Katsuya HIDAKA (user:hidakatsuya).


git-svn-id: https://svn.redmine.org/redmine/trunk@24013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-25 05:30:33 +00:00
Marius Balteanu
b21e0513aa Adds documentation for recent_pages macro (#38501).
git-svn-id: https://svn.redmine.org/redmine/trunk@23974 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-13 08:51:04 +00:00
Marius Balteanu
3a19544136 Adds {{recent_pages}} macro that displays a list of recently updated Wiki pages (#38501).
Patch by Go MAEDA (user:maeda).

git-svn-id: https://svn.redmine.org/redmine/trunk@23957 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 08:20:04 +00:00
Marius Balteanu
3090bf6906 Adds icons to commonmark alerts (#42603).
git-svn-id: https://svn.redmine.org/redmine/trunk@23796 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-05-24 21:29:21 +00:00
Marius Balteanu
e25f391677 Fixes rubocop offenses (#42648, #42603).
git-svn-id: https://svn.redmine.org/redmine/trunk@23728 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-30 22:56:45 +00:00
Marius Balteanu
e6f00370ee Fixes broken references for multiple footnote usage (#42648).
git-svn-id: https://svn.redmine.org/redmine/trunk@23726 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-30 22:40:18 +00:00
Marius Balteanu
8fa4c44581 Enable CommonMark alert extension (#42603).
Patch by Mizuki ISHIKAWA (user:ishikawa999).

git-svn-id: https://svn.redmine.org/redmine/trunk@23724 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-29 21:13:55 +00:00
Marius Balteanu
6faaf3d038 Replaces deckar01-task_list gem with commonmarks tasklist extension (#42602).
git-svn-id: https://svn.redmine.org/redmine/trunk@23718 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-27 06:58:32 +00:00
Marius Balteanu
9a0fc14754 Fixes Rubocop offenses (#42510).
git-svn-id: https://svn.redmine.org/redmine/trunk@23699 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-21 07:21:40 +00:00
Marius Balteanu
524a41eb6c Disable header_ids, tasklist, shortcodes extensions and github_pre_lang render option that are now enabled by default in commonmark (#40197).
git-svn-id: https://svn.redmine.org/redmine/trunk@23696 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-21 05:29:13 +00:00
Marius Balteanu
320ed9c3d8 Updates commonmarker to 2.3.0 (#40197).
git-svn-id: https://svn.redmine.org/redmine/trunk@23695 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-21 05:26:03 +00:00
Marius Balteanu
6951e569c4 Improve SVG icon compatibility with RTL languages by adding the @rtl@ parameter to @sprite_icon@ method. When it is @true@, it adds the 'icon-rtl' class to SVG icons, flipping their direction if an RTL language is used (#42465).
git-svn-id: https://svn.redmine.org/redmine/trunk@23654 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-13 20:30:19 +00:00
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