项目

一般

简介

插件 » Redmine Reformat 强大的Redmine富文本转换工具

Redmine Reformat

Redmine Reformat 通过一套rake任务,实现Redmine富文本字段文本格式的灵活转换和批量格式处理。

发布于: https://github.com/orchitech/redmine_reformat
兼容于: Redmine 5.0.*, 4.2.*, 4.1.*, 4.0.*, 3.4.*

最新版本: 0.8.1 更新日期: 2023-03-16 14:54

基本介绍

Redmine Reformat 通过一套rake任务,实现Redmine富文本字段文本格式的灵活转换和批量格式处理。例如,实现 Redmine UEditor «百度»富文本编辑器 的html和markdown、textile等格式之间相互转换。

功能介绍

  • 格式转换可以基于Redmine的每项目、每对象以及每字段。
  • 不同的数据集可以使用不同的转换,这在你的Redmine同时采用了多种不同语法习惯时非常有用。
  • 支持自定义字段、issue历史记录,甚至支持自定义字段的历史记录
  • 支持并行转换,在使用外部工具时尤为方便,例如(pandoc, web services).
  • 并行转换支持 Transaction safety
  • 目前支持的转换方式包含:
    • TextileToMarkdown - a Pandoc-based Textile to Markdown converter. Works on markup level. Battle-tested on ** quarter a million strings. See below for details.
    • MarkdownToCommonmark - converts main specifics in old Redmine markdown format (Redcarpet) to CommonMark/GFM.
    • RedmineFormatter - produces HTML using Redmine’s internal formatter. Useful when chaining with external converters. See below for details.
    • LinkRewriter - useful for refactoring Redmine project structure (renaming, merging). See below for details.
    • Ws - calls an external web service, providing input in the POST body and expecting converted output in the response body.
    • Feel free to submit more
  • Conversions can be chained - e.g. convert Atlassian Wiki Markup (roughly similar to Textile) to HTML and then HTML to Markdown using Turndown.
  • Newlines are normalized in a configurable way to make the result deterministic and most matching the converted texts.