プロジェクト

全般

プロフィール

Vote #63986

完了

Pluggable wiki formatter

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Wiki_1
対象バージョン:
開始日:
2008/10/12
期日:
進捗率:

0%

予定工数:
category_id:
1
version_id:
2
issue_org_id:
2025
author_id:
1249
assigned_to_id:
0
comments:
6
status_id:
5
tracker_id:
3
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

This patch makes wiki formatting pluggable.

You can add a new wiki formatting as a plugin. For example, I wrote "RD plugin":http://github.com/yugui/remine_rd_formatter. This provides redmine with "Ruby Document Format":http://en.wikipedia.org/wiki/Ruby_Document_format, which is the format "Ruby Issue Tracking System":http://redmine.ruby-lang.org uses.

h2. textile plugin

In the patch [[attachment:make-wiki-formatters-pluggable.patch]], textile formatter is still embedded in Redmine.
But it is possible to extract the embedded textile formatting from redmine. [[attachment:extract-textile-formatting-as-a-plugin.patch]] does this. Perhaps, this patch needs git-am(1) because it renames some files.


journals

Oops, URL for my RD plugin was wrong. It is http://github.com/yugui/redmine_rd_formatter.
--------------------------------------------------------------------------------
+1.
--------------------------------------------------------------------------------
This nice feature which is committed in r1955 with minor changes.

One thing concerning your RD plugin:
I removed the jstoolbar stylesheet include tag from the base layout so that plugins can use other libraries to render the toolbar. So, you'll have to add it in @#heads_for_wiki_formatter@. It would look like this:

<pre>
def heads_for_wiki_formatter
stylesheet_link_tag('jstoolbar') +
stylesheet_link_tag('rd', :plugin => 'redmine_rd_formatter')
end
</pre>

Your plugin was tested OK with this change.

Concerning your second patch, I prefer to keep the Textile formatter bundled in the app because I don't want to rely on Engines' mirror files mechanism for such a core functionality.

Thanks.
--------------------------------------------------------------------------------
Thank you, Jean-Phillipe. I committed the change you suggested into http://github.com/yugui/redmine_rd_formatter/tree/master.

And I think this plugin can show the best example of wiki formatter implementation for plugin developers. Could you add the plugin to http://www.redmine.org/wiki/redmine/Plugins ?
--------------------------------------------------------------------------------
Indeed, a link to your plugin was added to the plugin list.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,2166,Extend Textile syntax via plugin
relates,New,35889,Textile and Markdown attachment rendering should support third-party formatters

Admin Redmine さんが3年以上前に更新

  • カテゴリWiki_1 にセット
  • 対象バージョン0.8_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0