Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

[DEPRECATED] Redmine rake task to convert content from textile to markdown

License

Notifications You must be signed in to change notification settings

orchitech/redmine_convert_textile_to_markown

 
 

Repository files navigation

[DEPRECATED] Redmine converter from Textile to Markown

This fork has been superseded by the project orchitech/redmine_reformat.


This is a rake task for Redmine that uses pandoc to convert database content from Textile to Markdown formatting. The conversion is tweaked to adapt to Redmine's special features.

Known limitations

Because Redmine's textile is different than pandoc's textile, and because of some limitation in pandoc, the result will not be perfect, but it should be good enough to get you started. Here are some known limitations:

Usage

  1. Backup your database

  2. Install pandoc

  3. Install the task:

    cd $REDMINE_ROOT_DIRECTORY
    wget -P lib/tasks/ https://github.com/Ecodev/redmine_convert_textile_to_markown/raw/master/convert_textile_to_markdown.rake
  4. Run the task:

    bundle exec rake convert_textile_to_markdown RAILS_ENV=production

History

This script was built upon @sigmike answer on Stack Overflow, later slightly modified by Hugues C. and finally significantly completed by us.

About

[DEPRECATED] Redmine rake task to convert content from textile to markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%