Pluggable wiki formatter
This patch makes wiki formatting pluggable.
In the patch [[make-wiki-formatters-pluggable.patch]], textile formatter is still embedded in Redmine.
But it is possible to extract the embedded textile formatting from redmine. [[extract-textile-formatting-as-a-plugin.patch]] does this. Perhaps, this patch needs git-am(1) because it renames some files.
#3 Updated by Jean-Philippe Lang almost 9 years ago
- Status changed from New to Closed
- Target version set to 0.8
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:
def heads_for_wiki_formatter stylesheet_link_tag('jstoolbar') + stylesheet_link_tag('rd', :plugin => 'redmine_rd_formatter') end
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.
#4 Updated by Yuki Sonoda almost 9 years ago
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 ?