summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting
Commit message (Collapse)AuthorAgeFilesLines
* 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
* CommonMark Markdown formatter does not support min-width, max-width, ↵Go MAEDA2023-01-111-2/+2
| | | | | | | | | 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
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-0120-20/+20
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix `{{thumbnail}}` macro in an issue note cannot fetch an image attached in ↵Go MAEDA2022-12-301-1/+2
| | | | | | | | | a different note (#37881). Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@22012 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Layout/FirstArrayElementIndentation in html_sanitizer.rb ↵Go MAEDA2022-10-201-4/+5
| | | | | | (#37750). git-svn-id: https://svn.redmine.org/redmine/trunk@21913 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offenses Layout/EmptyLinesAroundModuleBody, ↵Go MAEDA2022-10-201-4/+0
| | | | | | 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
* Add a copyright header (#37750).Go MAEDA2022-10-201-0/+19
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21911 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Escape tags that start with pre (#37767).Go MAEDA2022-10-171-5/+7
| | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21902 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Introduces a standalone html sanitizer class (#37750).Marius Balteanu2022-10-041-0/+20
| | | | | | | Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21900 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Escape blockquote citation in textile formatting (#37751).Marius Balteanu2022-10-041-1/+1
| | | | | | | Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21894 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow select custom CSS properties (#37237).Marius Balteanu2022-09-261-0/+15
| | | | | | | | Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21850 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add rel="noopener" to all external links with a target attribute (#37713).Marius Balteanu2022-09-261-0/+6
| | | | | | | Patch by Jens Krämer. git-svn-id: https://svn.redmine.org/redmine/trunk@21849 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Thumbnail macro does not work when a file is attached and preview is ↵Go MAEDA2022-07-191-2/+6
| | | | | | | | | displayed immediately (#37379). Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@21716 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add frozen_string_literal and copyright (#37119).Marius Balteanu2022-06-251-0/+19
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21683 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix rubocop warnings (#37119). Marius Balteanu2022-06-171-2/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21654 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move methods related to wiki section to a helper file and include it in all ↵Marius Balteanu2022-06-164-70/+68
| | | | | | 3 formatters (#37119). git-svn-id: https://svn.redmine.org/redmine/trunk@21643 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Rails/RootPublicPath (#37248).Go MAEDA2022-06-141-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21633 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update footnotes markup after commonmarker gem update (#35892).Marius Balteanu2022-05-281-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21612 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix Rubocop warnings.Marius Balteanu2022-05-171-1/+5
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21596 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix rendering invalid URI fails with exception in CommonMark Markdown (#36958).Marius Balteanu2022-05-031-1/+1
| | | | | | | | Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21558 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Comments for Textile text formatting (#20511).Go MAEDA2022-03-171-0/+5
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21457 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable task list items for Common Mark text formatting (#35742).Marius Balteanu2022-01-221-0/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21383 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes Markdown and CommonMark formatters independent of each other (#32424).Marius Balteanu2022-01-041-8/+21
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21345 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-0218-18/+18
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move preparation code to redmine/preparation.rb (#29914, #32938).Marius Balteanu2021-11-171-1/+0
| | | | | | Patch by Takashi Kato. git-svn-id: http://svn.redmine.org/redmine/trunk@21284 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix typo in class 'icon-expended' (#36149).Marius Balteanu2021-11-081-1/+1
| | | | | | Patch by Bernhard Rohloff. git-svn-id: http://svn.redmine.org/redmine/trunk@21275 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update .rubocop_todo and fix Style/AndOr offense (#29914, #32938).Marius Balteanu2021-10-201-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21253 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Split multiple classes and modules that existed in the same file (#29914, ↵Marius Balteanu2021-10-201-0/+107
| | | | | | | | #32938). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@21252 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Append two spaces to lines when importing an email on CommonMark with ↵Marius Balteanu2021-10-032-1/+31
| | | | | | | | hardbreaks disabled (#32424). Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21228 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Make hardbreaks behaviour configurable in config/configuration.yml (#32424).Marius Balteanu2021-10-031-2/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21227 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Unify code block and add "data-language" attribute with the user-supplied ↵Marius Balteanu2021-08-152-6/+10
| | | | | | | | 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
* Add "data-language" attribute to code block with the user-supplied language ↵Marius Balteanu2021-08-152-2/+5
| | | | | | | | for CommonMark formater (#35104, #32424). Patch by Martin Cizek. git-svn-id: http://svn.redmine.org/redmine/trunk@21182 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Preserve the code block and remove the class from it when the language is ↵Marius Balteanu2021-08-151-2/+2
| | | | | | not supported in CommonMark formatter (#35765, 32424). git-svn-id: http://svn.redmine.org/redmine/trunk@21181 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed Replace class var @@allowlist with a class instance var (#32424).Marius Balteanu2021-08-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21166 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace deprecated Sanitize keywords (#32424).Marius Balteanu2021-08-111-17/+17
| | | | | | Patch by Martin Cizek. git-svn-id: http://svn.redmine.org/redmine/trunk@21162 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Relax allowed protocols in links by denying specific protocols for ↵Marius Balteanu2021-08-111-5/+23
| | | | | | | | CommonMark text formatting (#32424). Patch by Martin Cizek. git-svn-id: http://svn.redmine.org/redmine/trunk@21161 e93f8b46-1217-0410-a6f0-8f06a7374b81