How to convert existing format from textile to markdown

Added by li ru 4 months ago

I Use Cent OS7, Bitnami Redmine 3.4.6.stable
Referenced this article
https://blog.longwin.com.tw/2017/05/redmine-convert-textile-wiki-markdown-format-2017/

==================================
I have installed pandoc
Downloaded
sudo wget -P lib/tasks/ https://github.com/Ecodev/redmine_convert_textile_to_markown/raw/master/convert_textile_to_markdown.rake
sudo bundle exec rake convert_textile_to_markdown RAILS_ENV=productio
An error message appears when I execute Rake again
[bundle exec rake convert_textile_to_markdown RAILS_ENV=production] ==================================
Is there no other solution for this? Or are there other ways to convert textile_to_markdown?

Currently, the only tools available on the Internet to convert texttile to markdown are [convert_textile_to_markdown], and the response is at least three years ago. There is no progress to update.

Continue to query [convert_textile_to_markdown] related literature shows that the successful example is only the older redmine version 2.5 2.X ==================================

full version

bash-4.2# bundle exec rake convert_textile_to_markdown RAILS_ENV=production --trace
  • Invoke convert_textile_to_markdown (first_time)
  • Invoke environment (first_time)
  • Execute environment
  • Execute convert_textile_to_markdown
    WelcomeTextrake aborted!
    pandoc failed
    /opt/bitnami/apps/redmine/htdocs/lib/tasks/convert_textile_to_markdown.rake:110:in convert_textile_to_markdown'
    /opt/bitnami/apps/redmine/htdocs/lib/tasks/convert_textile_to_markdown.rake:18:inblock in '
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:271:in block in execute'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:271:ineach'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:271:in execute'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:213:inblock in invoke_with_call_chain'
    /opt/bitnami/ruby/lib/ruby/2.3.0/monitor.rb:214:in mon_synchronize'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:193:ininvoke_with_call_chain'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/task.rb:182:in invoke'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:160:ininvoke_task'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:116:in block (2 levels) in top_level'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:116:ineach'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:116:in block in top_level'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:125:inrun_with_threads'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:110:in top_level'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:83:inblock in run'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:186:in standard_exception_handling'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/lib/rake/application.rb:80:inrun'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/rake-12.3.1/exe/rake:27:in <top (required)>'
    /opt/bitnami/ruby/bin/rake:23:inload'
    /opt/bitnami/ruby/bin/rake:23:in <top (required)>'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:74:inload'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:74:in kernel_load'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli/exec.rb:27:inrun'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli.rb:335:in exec'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:inrun'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in invoke_command'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor.rb:359:indispatch'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli.rb:20:in dispatch'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:instart'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/cli.rb:11:in start'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/exe/bundle:32:inblock in '
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/friendly_errors.rb:121:in with_friendly_errors'
    /opt/bitnami/ruby/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/exe/bundle:24:in'
    /opt/bitnami/ruby/bin/bundle:23:in load'
    /opt/bitnami/ruby/bin/bundle:23:in'
    Tasks: TOP => convert_textile_to_markdown