All Projects → Ecodev → redmine_convert_textile_to_markown

Ecodev / redmine_convert_textile_to_markown

Licence: MIT license
Redmine rake task to convert content from textile to markdown

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to redmine convert textile to markown

pandoc-action
github action to run pandoc, soft-deprecated ->
Stars: ✭ 39 (-13.33%)
Mutual labels:  pandoc
DefectDetectionDemo
Textile defect detection using OpenCVSharp
Stars: ✭ 33 (-26.67%)
Mutual labels:  textile
running-redmine-on-puma
running redmine on puma installation tutorial (Ubuntu/MySQL)
Stars: ✭ 20 (-55.56%)
Mutual labels:  redmine
ticketutil
Python ticketing utility for working with tickets in popular tools
Stars: ✭ 58 (+28.89%)
Mutual labels:  redmine
vault
Is a plugin for project management system Redmine. Allows you to store various passwords/keys in one place for the project.
Stars: ✭ 44 (-2.22%)
Mutual labels:  redmine
react-native-sdk
[DEPRECATED] React Native bindings for https://github.com/textileio/go-textile
Stars: ✭ 38 (-15.56%)
Mutual labels:  textile
dissertation-story
My philosophy dissertation + cloud backup + version control. Written in plaintext Markdown with Sublime Text 3.
Stars: ✭ 14 (-68.89%)
Mutual labels:  pandoc
cookbook-redmine
Chef's Cookbook for installing Redmine
Stars: ✭ 25 (-44.44%)
Mutual labels:  redmine
additionals
Redmine plugin for easy customization of settings, text and content display by using personal or role-based dashboards (drag&drop), providing wiki macros and act as library for other plugins.
Stars: ✭ 91 (+102.22%)
Mutual labels:  redmine
PanBook
Pandoc LaTeX,Epub模板,用于生成书籍,幻灯片(beamer),简历,论文等(cv, thesis, ebook,beamer)
Stars: ✭ 190 (+322.22%)
Mutual labels:  pandoc
react-native-boilerplate
[DEPRECATED] A boilerplate app that shows creating, starting, and managing an IPFS peer using Textile's React Native SDK
Stars: ✭ 20 (-55.56%)
Mutual labels:  textile
Redmine-Periodic-Task
A redmine plugin that lets you schedule an issue to fire every x days/weeks/months
Stars: ✭ 61 (+35.56%)
Mutual labels:  redmine
docker-alpine-pandoc-ja
Pandoc for Japanese based on Alpine Linux
Stars: ✭ 14 (-68.89%)
Mutual labels:  pandoc
awesome-academic-writing
MERGED with https://github.com/writing-resources/awesome-scientific-writing
Stars: ✭ 39 (-13.33%)
Mutual labels:  pandoc
tufte-pandoc-jekyll
A Jekyll theme for using Tufte CSS with Jekyll + Pandoc
Stars: ✭ 56 (+24.44%)
Mutual labels:  pandoc
rjsmake
Use Markdown to generate a Reveal.js presentation in minutes.
Stars: ✭ 19 (-57.78%)
Mutual labels:  pandoc
pandoc-lecture
This project defines a skeleton repo for creating lecture slides and handouts including lecture notes out of Pandoc Markdown (http://pandoc.org/MANUAL.html) using a single source approach.
Stars: ✭ 72 (+60%)
Mutual labels:  pandoc
Markdown-Templates
Templates for creating scientific, academic and technical documents using Markdown and Pandoc that support equations, code blocks, citations, Unicode symbols and vector graphics.
Stars: ✭ 130 (+188.89%)
Mutual labels:  pandoc
redmine customize
Plugin for some Redmine customizations.
Stars: ✭ 32 (-28.89%)
Mutual labels:  redmine
redmine-wiki graphviz plugin
Wiki macro for redmine. The macro render graph-image from wiki contents as dot.
Stars: ✭ 57 (+26.67%)
Mutual labels:  redmine

Unmaintained

This project was archived in December 2020. It will keep working for a while. But in the future it will require adaptations for future versions of Redmine and Pandoc. When the time comes, I suggest you to fork this project.

Redmine converter from Textile to Markown Build Status

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:

  • Numbered lists containing <pre> blocks will lose their numbering (restarting at 1 after the <pre>). Some complex cases will lose their list layout entirely.
  • Tables without proper headers will be rendered with an empty header
  • Multilines tables will in the first pandoc run converted mostly to HTML which we detect and then in a second might end up as proper markdown tables (if it doesn't work it stays a HTML table) by removing the <br/> and afterwards introducing them again into the markdown.
  • Some interlaced formatting of inline code and bold will be messed up
  • <!-- --> may appear in final ouput in a few places because Redmine incorrectly does not support HTML in markdown

Usage

  1. Backup your database

  2. Install pandoc. See the example script setup.sh and adapt it to your environment for preparing the conversion.

  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
  5. Check if you have strangely converted HTML or Markdown Tables -> There might be false positives.

    cd $REDMINE_ROOT_DIRECTORY
    wget -P lib/tasks/ https://github.com/Ecodev/count_tables/raw/master/convert_textile_to_markdown.rake
    bundle exec rake count_tables RAILS_ENV=production

    This will output all content into files in the current working dir where HTML or markdown tables have been detected to counter check.

Testing

Run the tests with

ruby test.rb

History

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].