summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting
Commit message (Collapse)AuthorAgeFilesLines
* Improve SVG icon compatibility with RTL languages by adding the @rtl@ ↵Marius Balteanu21 hours1-1/+1
| | | | | | 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
* Correctly handle exception messages in macros (#42326).Marius Balteanu2025-03-061-1/+1
| | | | | | | Patch by Holger Just (user:hjust). git-svn-id: https://svn.redmine.org/redmine/trunk@23519 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes rubocop offenses (#40197).Marius Balteanu2024-11-112-3/+3
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23250 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Disables @syntax_highlighter@ plugin shipped by commonmark (#40197).Marius Balteanu2024-11-112-1/+8
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23249 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Simplify code (#40197).Marius Balteanu2024-11-111-7/+3
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23248 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates commonmark gem version to 1.1.5 which switches from libcmark-gfm to ↵Marius Balteanu2024-11-112-21/+22
| | | | | | comrak/Rust (#40197). git-svn-id: https://svn.redmine.org/redmine/trunk@23247 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r23190-r23187 because the CI build fails with error "ERROR: Failed ↵Marius Balteanu2024-11-032-29/+25
| | | | | | to build gem native extension" (#40197). git-svn-id: https://svn.redmine.org/redmine/trunk@23197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Disable syntax_highlighter plugin shipped by commonmark (#40197).Marius Balteanu2024-11-032-1/+8
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23190 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Simplify code (#40197).Marius Balteanu2024-11-031-7/+3
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23189 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates commonmark gem version to 1.1.5 which switches from libcmark-gfm to ↵Marius Balteanu2024-11-032-21/+22
| | | | | | comrak/Rust. git-svn-id: https://svn.redmine.org/redmine/trunk@23188 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix reference to the deleted Redcarpet-based ↵Go MAEDA2024-10-211-1/+27
| | | | | | 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
* Drop deprecated Redcarpet based Markdown formatter (#40149).Go MAEDA2024-10-203-225/+0
| | | | | | | Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23153 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Renames and improves methods provided by @IconsHelper@ (#23980).Marius Balteanu2024-10-191-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23145 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add underline button to CommonMark Markdown toolbar (#40939).Go MAEDA2024-10-091-0/+3
| | | | | | | Contributed by Yasu Saku (user:skys). git-svn-id: https://svn.redmine.org/redmine/trunk@23106 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces icon-expanded and icon-collapsed with SVG icons (#23980).Marius Balteanu2024-09-081-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23041 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/RedundantInterpolationUnfreeze (#39887).Go MAEDA2024-09-011-7/+7
| | | | | | | 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
* Add support for quoted arguments containing commas in wiki macros (#40014).Go MAEDA2024-08-201-2/+5
| | | | | | | Patch by Yasu Saku (user:skys). git-svn-id: https://svn.redmine.org/redmine/trunk@22959 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Layout/SpaceInsideParens, one of the offenses enabled in ↵Go MAEDA2024-08-122-140/+140
| | | | | | rubocop-rails-omakase (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@22954 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Layout/SpaceAfterComma, one of the offenses enabled in ↵Go MAEDA2024-08-121-8/+8
| | | | | | rubocop-rails-omakase (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@22953 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Layout/EmptyLinesAroundClassBody, one of the offenses ↵Go MAEDA2024-08-123-3/+0
| | | | | | enabled in rubocop-rails-omakase (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@22949 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Prevent issue links with double hash (##nnn) from being recognized as ATX ↵Go MAEDA2024-07-061-2/+2
| | | | | | | | | headings (#40716). Patch by daijiro fukuda (user:daipom). git-svn-id: https://svn.redmine.org/redmine/trunk@22906 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/RedundantRegexpEscape in ↵Go MAEDA2024-07-061-2/+2
| | | | | | lib/redmine/wiki_formatting/section_helper.rb (#40716). git-svn-id: https://svn.redmine.org/redmine/trunk@22905 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/SuperArguments (#39887).Go MAEDA2024-05-231-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22842 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces use of Digest::MD5 / Digest::SHA1 with ActiveSupport::Digest (#35217).Marius Balteanu2024-05-072-4/+2
| | | | | | Patch by Jens Krämer (@jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@22816 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix initial_page_content method to avoid referencing @page instance variable ↵Go MAEDA2024-04-103-3/+3
| | | | | | | | | 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
* Fix RuboCop offense Layout/SpaceInsideStringInterpolation (#39111, #40137).Go MAEDA2024-03-081-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22771 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-2620-20/+20
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates JS toolbar help button to use the new route (#39111, #40137).Marius Balteanu2024-02-193-17/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22722 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix performance issue with email address auto-linking in the default ↵Go MAEDA2024-02-071-1/+4
| | | | | | | | | ("none") formatter (#40193). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22684 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/RedundantFreeze (#38585).Go MAEDA2024-01-271-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22652 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace regular expression matches with String#start_with? / end_with? (#40010).Go MAEDA2024-01-111-4/+4
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22605 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow consecutive footnote references inTextile (#39884).Marius Balteanu2023-12-221-1/+1
| | | | | | Patch by @hjust. git-svn-id: https://svn.redmine.org/redmine/trunk@22546 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/StringIdentifierArgument (#39888).Go MAEDA2023-12-201-5/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22535 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/SuperWithArgsParentheses (#39887).Go MAEDA2023-12-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22530 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix CommonMark Markdown help page to reflect user's language setting (#39755).Go MAEDA2023-12-061-7/+12
| | | | | | | Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22496 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixes i18n call in macro error fallback (#37668).Go MAEDA2023-10-061-1/+1
| | | | | | | Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@22331 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use uri_with_link_safe_scheme? in Redcloth3 (#38807).Go MAEDA2023-09-181-2/+2
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22303 e93f8b46-1217-0410-a6f0-8f06a7374b81
* HTML-escape the entire tag content of escaped HTML tags in textile (#38807).Go MAEDA2023-09-181-2/+2
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22302 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adapt markdown autolink behavior to that of common_mark (#38806).Go MAEDA2023-09-181-2/+15
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22298 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix exception raised during thumbnail macro to image tag conversion in ↵Go MAEDA2023-08-301-1/+1
| | | | | | | | | emails (#38697). Patch by Y saku and Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@22285 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/RedundantSelfAssignmentBranch (#36919).Go MAEDA2023-06-291-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22263 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/RedundantRegexpArgument (#36919).Go MAEDA2023-06-292-5/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22262 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert the change made in error in r22197 (#38435).Go MAEDA2023-04-161-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Change the notation of "contains any of" filter operator to "*~" (#38435).Go MAEDA2023-04-161-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22197 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Lint/MissingSuper (#36919).Go MAEDA2023-03-241-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22147 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update CommonMarker extension options linkGo MAEDA2023-01-311-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22084 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/RedundantSplitRegexpArgument (#38146).Go MAEDA2023-01-111-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22033 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/RedundantMatch (#38146).Go MAEDA2023-01-112-3/+3
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22032 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/ConstantRegexp (#38146).Go MAEDA2023-01-112-5/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22029 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/BlockGivenWithExplicitBlock (#38146).Go MAEDA2023-01-111-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22027 e93f8b46-1217-0410-a6f0-8f06a7374b81