Marius Balteanu
8bf7f09112
Refactors parse_hires_images and parse_inline_attachments methods from ApplicationHelper to scrubbers ( #43745 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@24406 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-12 02:52:28 +00:00
Marius Balteanu
84483d6382
Stop traversal of child elements at @Loofah::Scrubber::STOP@ signal ( #42737 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@24400 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-07 10:38:27 +00:00
Marius Balteanu
a56413532c
Optimize Loofah performance by passing the HTML only once ( #42737 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@24399 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-02-07 10:27:50 +00:00
Marius Balteanu
da5245ea06
Add stimulus clipboard_controller and render copy button on the backend using copypre_scrubber ( #43643 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@24360 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-23 16:14:04 +00:00
Marius Balteanu
f7f585a6d3
Unify syntax_highlight_scrubber in textile and common ( #43643 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@24358 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-23 16:08:33 +00:00
Marius Balteanu
acf0f9019e
Support Loofah for textile ( #43643 ):
...
* Add TablesortScrubber to both CommonMark and Textile Formatters. It will now be determined on the server-side whether to use tablesort.
* Migrate tablesort to Stimulus controller.
* Update tablesort to v5.7.0.
* Switch tablesort to ESM.
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@24357 e93f8b46-1217-0410-a6f0-8f06a7374b81
2026-01-23 16:05:42 +00:00
Marius Balteanu
2cd1e05fe8
Fixes significant performance degradation introduced in r24094 by removing the CSS selectors from scrubbers ( #43446 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@24139 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-11-10 08:23:01 +00:00
Marius Balteanu
d5c21a7ae2
Properly rename scrubber files ( #42737 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@24096 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-31 07:22:50 +00:00
Marius Balteanu
d89a3b5e6f
Replacing html-pipeline with Loofah for HTML Filtering ( #42737 ).
...
Patch by Takashi Kato (user:tohosaku).
git-svn-id: https://svn.redmine.org/redmine/trunk@24094 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-31 06:38:27 +00:00
Marius Balteanu
19927b2382
Localize default commonmark alert titles ( #43379 ).
...
Patch by Go MAEDA (user:maeda) and Marius BALTEANU (user:marius.balteanu).
git-svn-id: https://svn.redmine.org/redmine/trunk@24093 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-31 06:32:31 +00:00
Marius Balteanu
27bade55ee
Localize commonmark alert extension ( #43379 ).
...
Patch by Florian Walchshofer (user:amiswalc).
git-svn-id: https://svn.redmine.org/redmine/trunk@24077 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-10-27 22:06:45 +00:00
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
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
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
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
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
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
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
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
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
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
Go MAEDA
92bd67c279
Update copyright year to 2023 ( #38141 ).
...
git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 06:19:35 +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
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
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