GithubHelp home page GithubHelp logo

alminium / redmine_redcarpet_formatter Goto Github PK

View Code? Open in Web Editor NEW
135.0 135.0 38.0 188 KB

Another Markdown Wiki Formatter for Redmine based on Redcarpet markdown processor.

License: GNU General Public License v2.0

Ruby 54.61% JavaScript 19.73% CSS 25.66%

redmine_redcarpet_formatter's Introduction

ALMinium

Gitポケットリファレンスで紹介されました。ALMiniumによるGitのリポジトリ運用方法が書かれています。ALMiniumでGitを使いたい人にお勧めです!!

これはなに?

ALMiniumとは、ALM(Application Lifecycle Management)とRedmineの合金(..nium)という意味から名づけられました。

Redmineを利用してALMを実現するためのツールです。アルミニウムの持つ軽量性と伝導性を備えています。軽量性は、簡単に使えること、熱伝導性は他のプロジェクトへ徐々に広げていける仕組みです。

特徴

ALMiniumは、次のような特徴を持っています。

  • 簡単なインストーラ
  • Redmine,Subversion,Git,Mercurialなどプロジェクトマネージメントに必要なツールを一通りインストールしてくれます。ツール間のアカウント・アクセス権の連携や、チェンジセット・チケットの連携も自動で行ってくれます。
  • アジャイル開発や、CIに便利な各種プラグインもインストールしてくれます。
  • アジャイル開発をサポート
  • Backlogsプラグインによりアジャイル開発をサポートします。スプリント、ストーリー、タスクの管理からバーンダウンチャートによる進捗の確認、ベロシティの計測にも対応しています。
  • Hudson/Jenkinsと連携するプラグインが導入ずみであり、CIを簡単に行うことができます。
  • 品質管理
  • ALMminium固有の機能ではありませんが、バグの管理とソースコードの変更履歴を対応づけることができ、変更をトレースできます。
  • コードレビュー支援機能があります。コードがコミットされたら自動的にレビュー対象にすることができ、レビューされていないコミットを一目で確認することができます。また、指摘事項が修正されたかどうかの管理も行えるので、レビューしたけど、修正漏れがあって意味がないということもなくなります。
  • アジャイルでない開発でも使えます:)
  • 使いやすさの追求
  • ブラウザのクラッシュ時に嬉しい書きかけのチケットの自動復元機能やクリップボードからのスクリーンショットの添付など無償とはいえ、使いやすさに妥協を許しません。
  • RedcarpetによるGitHub互換のMarkdown表記をWiki/チケットに標準で利用することができます。Redmine標準のTextileに格段に分り易いです。Wikiエンジンを切り換えることによりreStructuredText(Sphinxで利用しているフォーマット)も利用可能です。
  • Git,Mercurial,Subversionのリポジトリ作成がプロジェクト作成画面から行えます。リポジトリサーバの小難しい設定も不要で、勝手にやってくれます。
  • MS Project,Excelのインポートなど、既存ツールとの連携を行うことができます。
  • マルチプロジェクト対応
  • 構築したALMiniumサーバ上で複数のプロジェクトを管理することができます。ALMinium(Redmin)のカスタマイズやプラグインによる拡張は全てのプロジェクトが恩恵を受けることができます。
  • 高い品質
  • 自分でRedmineを構築すると、バージョンの不整合やプラグインの競合などで正しく動作しなくハマル場合があります。ALMiniumは検証済みなので、安心して使えます。
  • ALMiniumの開発者はRedmine Backlogs, Redmine SCM Creatorなどにコントリビュータとして活動し、また、幾つかのプラグインはバグ修正を行ったバージョンをGitHubで管理して利用しています。

同梱するプラグイン

ALMiniumは、次のRedmineプラグインを同梱しています。

プラグイン 説明
Backlogs スクラム開発のサポート
Hudson Plugin Jenkins/Hudsonとの連携
Code Review コードレビュー支援
Redcarpet Wiki Formatter GitHubのMarkdown Wikiフォーマットを利用
MSProjects MS Projectのファイルをインポート
XLS export Excelでチケットを出力
Git Branch Hook Gitのブランチでの作業をチケットに連動させます

その他のプラグインついては、プラグインリストファイルをご覧ください。

動作環境

  • RHEL6 x64互換環境(OEL,SL,CentOSなど含む)
  • Ubuntu 12.04(x64)
  • Amazon AMI Linux 2011.09

32ビット版OSはサポートしていません。64ビット版をお使いください。下記のOSはサポートしていませんが、対応コードらしきものはあるのでがんばれば動作するかもしれません。

  • Debian GNU/Linux 6.0
  • Mac OSX

使い方

下記の通り実行すれば、ALMiniumのインストーラを実行できます。

 # yum install git 
もしくは
 # apt-get install git

 # git clone https://github.com/alminium/alminium.git
 # cd alminium
 # bash ./smelt

たったのこれだけで、チケットシステム、バージョン管理システム、Redmineの様々なプラグインのインストール、連携設定を行うことができます。なお、smeltは、金属を溶解して製錬するという意味で、様々なソフトウェア/プラグインを混合してALMiniumを作成するという意味からとっています。 なお、Ubuntuの場合、インストール途中にMySQLのパスワードの設定を聞かれますが、空欄にしてください。

インストールが終了すると、http://localhost/ (SSLを有効にした場合https://localhost/ )にWebブラウザで接続するとチケットシステムにアクセスできます。管理者権限でログインすると、設定やプロジェクトの作成を行うことができます。管理者情報は下記の通りです。

プロキシがある場合

プロキシ環境下で利用する場合は、次のようにしてプロキシを設定してから上記の設定を行なってください。

$ http_proxy=http://okamototk:password/proxyhost.com:8080/
$ https_proxy=http://okamototk:password/proxyhost.com:8080/

デフォルトの管理者情報

  • ユーザ名: admin
  • パスワード: admin

リポジトリの作成

リポジトリの作成は、プロジェクトの作成画面から可能です。リポジトリパスは、下記の通りです。

インストール時にSSLを無効にした場合は、httpを利用してください。gitをhttpsで利用する場合、不正な証明書を利用しているというエラーが発生しているので、クライアント側で下記のコマンドを実行し、証明書の検証を無効にしてください。

$ git config --global http.sslverify false

管理者・開発者のロールのユーザをリポジトリに対応するRedmineプロジェクトに追加することにより、コミット権を与えることができます。例えば、testrepoという名前のリポジトリに対して、testrepoという名前のRedmineプロジェクトを作成します。アクセスさせたいユーザを「開発者」ロールでtestrepoプロジェクトに追加すれば、アクセス権を付与することができます。

FAQ

Q: 作成したリポジトリにアクセスできません。

ALMiniumはRedmineのアカウントとバージョン管理システムのアカウントを連携させています。アクセスさせたいユーザをRedmineプロジェクトに追加してください。

Q: Redmineのリポジトリブラウザでリポジトリが参照できません

リポジトリが空場合、リポジトリブラウザでリポジトリを参照できません。リポジトリブラウザでに何かコミットしてみてください。例えば、Gitの場合、

$ git clone http://ユーザ名@ホスト名/git/リポジトリ名
$ cd リポジトリ名
$ touch dummy.txt
$ git add dummy.txt
$ git commit -a -m "add dummy file." 
$ git push

とするとリポジトリが見れるようになると思います。(SSLを有効にしている場合はhttpをhttpsとすること)

Q: SSLを有効にしてインストールしたのですが、やっぱり無効にしたいのですが。

mod_sslのパッケージをアンインストールするとHTTPのみのアクセスになります。

また、Apacheのredmineの設定(/etc/httpd/conf.d/redmine or /etc/apache/sites-availabled/redmine)のRewriteEngineをOffにするとhttpsへのリダイレクトを無効にできます。 RewriteEngineの設定はmod_sslの有無を判定しているので、mod_sslパッケージをアンインストールした場合設定の必要はありません。

Q: リポジトリが誰からも見れてしまうのですが。認証制限をかけれますか?

Redmineプロジェクトを公開にした場合、全てのユーザからのリポジトリの閲覧を許可します。Redmineプロジェクトを非公開にしてください。

Q: Redmineプロジェクトを公開にしたままリポジトリに認証制限をかけたいのですが。

Redmineを公開にした場合、リポジトリの認証に制限をかけたとしてもRedmineのリポジトリブラウザからリポジトリが見れてしまいます。 これでは意味ありませんよね?

Redmineの管理画面の「ロールと権限」から、「Non Member」と「Anonymous」のロールから「リポジトリの閲覧」を削除してください。 するとあら不思議、リポジトリのアクセスも受付なくなります。このようにALMiniumのリポジトリアクセス制御はRedmineと高度に連携しています

Q: 最新のMercurialでリポジトリにアクセスできません

ALMiniumは俗に言うオレオレ証明書を利用してHTTPSを実現しています。Mercurialの最近のバージョンでは、SSL証明書の検証を行うようになっており、HTTPSでの接続にエラーになります。

$ hg clone https://192.168.10.224/hg/hgtest
abort: error: _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:
certificate verify failed

そのような場合は、cloneやpushに--insecureオプションを付けることにより、証明書の検証を無効にし、正しくMercurialリポジトリへアクセスできるようになります。

$ hg clone --insecure https://192.168.10.224/hg/hgtest

Q: Gitでリモートブランチの上書き(git push -f)ができません

ALMiniumはセキュリティを考えてサーバ上のブランチの上書きを禁止しています。 上書きを有効にするには、/var/opt/alminium/git/リポジトリ名 に移動し、下記のコマンドによりブランチの上書きを有効にしてください。

# git config receive.denynonfastforwards false

ただし上記の設定を行うと、過去のコミットが削除されたり、ブランチの内容を消去されることがあるのでご注意ください。

Q: Gitでリモートブランチの削除ができません

上記と同じ理由でリモートブランチの削除も禁止してます。ブランチの削除きを有効にするには、/var/opt/alminium/git/リポジトリ名 に移動し、下記のコマンドによりブランチの削除を有効にしてください。

# git config receive.denydeletes false

ただし上記の設定を行うとブランチが削除される可能性があるので、ご注意ください。

Q: 既にインストールしたALMiniumのバージョンアップはできますか?

できます。詳細は、下記の記事をお読みください。

Q: ALMiniumのライセンスは何ですか?

ALMiniumは、Redmine,Git,Jenkinsを初め様々なオープンソースソース ソフトウェアをセットアップしてインストールするツールです。 インストールしたソフトウェアについては、個々のライセンスに 従います。

ALMiniumが用意するインストーラ及びスクリプトは、修正BSDライセンスで 提供します。修正BSDライセンスについては、下記のURLをご覧ください。

redmine_redcarpet_formatter's People

Contributors

chiastolite avatar drakontia avatar mikoto20000 avatar oooooooo avatar t-yuki avatar zekelu avatar zerodeux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redmine_redcarpet_formatter's Issues

Definition List

I want to use Definition List as PHP Markdown Extra definition list.

hoge
    : fuga
    : piyo

Strikeout & Underlining break links

Using & tags around links like:

<del>[Pagescroller single page template for $35](http://pagescroller.com/)</del>

Result in the text being struckout but the link is not being evaluated. The original textile formatter in Redmine, however, still sets the hyperlinks for the same formatting options.

Problems using redcarpet_formatter and autohier plugin

We are experiencing problems using the autohier plugin and the redcarpet_formatter.

Autohier (http://www.redmine.org/plugins/autohier) allows easy creation of parent/child relationships and trees of wiki pages. It uses the '>' character in the page name to denote parent/child. The issue appears when attempting to create a wiki link to a page, the rendered HTML generates '&gt' in the link.

Example:

Wiki Page 'A' has a child 'B'. Page 'A' has the name 'Page_A' and 'B' has the name 'Page_A>Page_B'.

the {{child_pages}} macro renders this relationship correctly:

Page_A

  • Page_B

A wiki link to page A works ([[Page_A]]), generates the link 'http://redmine/project/wiki/Page_A'. However, the markup [[Page_A>Page_B]] renders with the link as 'http://redmine/project/wiki/Page_A&gtPage_B'. This link does not work, and the link shows up in red on the rendered wiki page.

We have a large library of existing wikis that use autohier and would like to continue using the plugin for its ease of creating trees of pages.

Support Redmine 2.5.x

Redmine 2.5.x officially supported Markdown Wiki format as experimental feature.
So, Redcarpet Formatter plugin conflicts against this feature.

  • conflict : wiki_format_provider "markdown" on init.rb
  • conflict : Redmine::WikiFormatting::Markdown module

Rename to RedcarpetMarkdown or something else.

attachment link with underscores dosen't work

An attachment file like this:

an_attachment_file.pdf

dosen't work with the attachment keyword:

attachment:an_attachment_file.pdf

as the underscores are interpretted as emphasis marks.

The markdown parser should not be invoked when using attachment:.

Support for hard-wrapping of linebreaks in text with Redcarpet :hard_wrap option

Redcarpet supports the :hard_warp option, which is used by default in the GitHub Flavored Markdown.

This would allow to automatically wrap text to the next line when a linebreak ends the line. This is usually what the user expects. Markdown by default does not wrap the lines, but rather ignores the linebreak unless a empty line follows the linewrap.

A simple example would be:

Date for Meeting: 2013-01-12
Location: Amsterdam

I would expect to have Location:... be written on the next line, not concatenated to the first line.

I would ask for adding support to make use of this option by default. Feedback welcome.

Option from redcarpet HTML renderer:

:hard_wrap - insert HTML `<br>` tags inside on paragraphs where the origin
    Markdown document had newlines (by default, Markdown ignores these
    newlines).

section edit got "500 Internal Server Error"

here i found a bug when i click the "Edit this section" icon on the wiki page.
(see attached screenshot please)
i got the "500 Internal Server Error"

seek in the production.log, there are lines relate to the error:

NoMethodError (undefined method `each' for #<String:0xcdc790c>):
  app/controllers/wiki_controller.rb:125:in `edit'

i have Redmine 2.2.3 installed, and redmine_redcarpet_formatter plugin for the Markdown Wiki formatter.

multiple text formatters?

is it possible to enable this plugin without replacing the existing textile plugin (hereby breaking all the existing wiki pages and issues)?

Attachment links with two underscores in file names are not handled properly

I attached file with the name "textsample_under_scores.txt" to Redmine wiki page.

Then I tried to insert link to that file from wiki page with the following markup:

attachment:textsample_under_scores.txt

When I saved wiki page I obtained word "under" in file name italic and no link at all.

If I rename file textsample_under_scores.txt (remove one or two underscores) then link generated correctly.

It looks like file name is formatted according to the markdown syntax but should be preserved unchanged.

Wiki Link Followed by Brakets

When writing the following code:

[[Some Page]] (some comment)

The output is treated as an external inline link. I would expect that the wiki link has syntactic precedence, since it is well formed. (First match rule?)

Quoted resources not detectd and linked

Referenced resources are not correctly detected and linked, if the resources in question contains white-spaces.

This seems to be not working for all types of resources (attachments, document, source, ...)

For example for a wiki page with an attachment "my file.txt" and "dummy.txt":

* Please see attachment:"my file.txt" or   (not working)
* see attachment:"dummy.txt"   (not working)
* Or see attachment:dummy.txt and nothing else   (working)

The first 2 examples will not be link to the attachment but rather displayed as plain text.
Using the attachment without spaces and written without quotes works though.

This is working using redmine with textile syntax for all resources with spaces and/or quotes.

Error:format name 'markdown' is already taken

[ 2015-01-31 15:18:41.1383 30242/7f02d23bf700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /opt/redmine-2.6.1-1/apps/redmine/htdocs/: An error occured while starting up the preloader.
Error ID: fe342d49
Error details saved to: /tmp/passenger-error.keWIiS
Message from application: You cannot specify the same gem twice with different version requirements.
You specified: redcarpet (~> 2.3.0) and redcarpet (>= 0) (Bundler::GemfileError)
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/dsl.rb:84:in gem' /opt/redmine-2.6.1-1/apps/redmine/htdocs/plugins/redmine_redcarpet_formatter/Gemfile:3:inblock in eval_gemfile'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/Gemfile:109:in instance_eval' /opt/redmine-2.6.1-1/apps/redmine/htdocs/Gemfile:109:inblock in eval_gemfile'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/Gemfile:106:in glob' /opt/redmine-2.6.1-1/apps/redmine/htdocs/Gemfile:106:ineval_gemfile'
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/dsl.rb:32:in instance_eval' /opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/dsl.rb:32:ineval_gemfile'
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/dsl.rb:10:in evaluate' /opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/definition.rb:25:inbuild'
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler.rb:154:in definition' /opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler.rb:117:insetup'
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.7.0/lib/bundler/setup.rb:17:in <top (required)>' /opt/redmine-2.6.1-1/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:inrequire'
/opt/redmine-2.6.1-1/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in rescue in require' /opt/redmine-2.6.1-1/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:inrequire'
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/lib/phusion_passenger/loader_shared_helpers.rb:263:in block in run_load_path_setup_code' /opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/lib/phusion_passenger/loader_shared_helpers.rb:366:inrunning_bundler'
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/lib/phusion_passenger/loader_shared_helpers.rb:261:in run_load_path_setup_code' /opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/helper-scripts/rack-preloader.rb:100:inpreload_app'
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/helper-scripts/rack-preloader.rb:158:in <module:App>' /opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/helper-scripts/rack-preloader.rb:29:inmodule:PhusionPassenger'
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/helper-scripts/rack-preloader.rb:28:in `

'

So I updated Gemfile, change gem "redcarpet" to gem "redcarpet", "~>2.3.0", but another error occurs:

[ 2015-01-31 15:24:57.0850 30916/7f04509d2700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /opt/redmine-2.6.1-1/apps/redmine/htdocs/: An error occured while starting up the preloader.
Error ID: 935034bc
Error details saved to: /tmp/passenger-error.EhBsZF
Message from application: format name 'markdown' is already taken (ArgumentError)
/opt/redmine-2.6.1-1/apps/redmine/htdocs/lib/redmine/wiki_formatting.rb:33:in register' /opt/redmine-2.6.1-1/apps/redmine/htdocs/lib/redmine/plugin.rb:361:inwiki_format_provider'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/plugins/redmine_redcarpet_formatter/init.rb:29:in block in <top (required)>' /opt/redmine-2.6.1-1/apps/redmine/htdocs/lib/redmine/plugin.rb:75:ininstance_eval'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/lib/redmine/plugin.rb:75:in register' /opt/redmine-2.6.1-1/apps/redmine/htdocs/plugins/redmine_redcarpet_formatter/init.rb:23:in<top (required)>'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in require' /opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:inblock in require'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in load_dependency' /opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:inrequire'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/lib/redmine/plugin.rb:150:in block in load' /opt/redmine-2.6.1-1/apps/redmine/htdocs/lib/redmine/plugin.rb:141:ineach'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/lib/redmine/plugin.rb:141:in load' /opt/redmine-2.6.1-1/apps/redmine/htdocs/config/initializers/30-redmine.rb:19:in<top (required)>'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in load' /opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:inblock in load'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in load_dependency' /opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:inload'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-3.2.21/lib/rails/engine.rb:593:in block (2 levels) in <class:Engine>' /opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-3.2.21/lib/rails/engine.rb:592:ineach'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-3.2.21/lib/rails/engine.rb:592:in block in <class:Engine>' /opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-3.2.21/lib/rails/initializable.rb:30:ininstance_exec'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-3.2.21/lib/rails/initializable.rb:30:in run' /opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-3.2.21/lib/rails/initializable.rb:55:inblock in run_initializers'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-3.2.21/lib/rails/initializable.rb:54:in each' /opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-3.2.21/lib/rails/initializable.rb:54:inrun_initializers'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-3.2.21/lib/rails/application.rb:136:in initialize!' /opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/railties-3.2.21/lib/rails/railtie/configurable.rb:30:inmethod_missing'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/config/environment.rb:14:in <top (required)>' config.ru:3:inrequire'
config.ru:3:in block in <main>' /opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:ininstance_eval'
/opt/redmine-2.6.1-1/apps/redmine/htdocs/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in initialize' config.ru:1:innew'
config.ru:1:in <main>' /opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/helper-scripts/rack-preloader.rb:112:ineval'
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/helper-scripts/rack-preloader.rb:112:in preload_app' /opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/helper-scripts/rack-preloader.rb:158:inmodule:App'
/opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/helper-scripts/rack-preloader.rb:29:in <module:PhusionPassenger>' /opt/redmine-2.6.1-1/ruby/lib/ruby/gems/2.0.0/gems/passenger-4.0.57/helper-scripts/rack-preloader.rb:28:in

'

Right-side TOC "macro" doesn't work when using markdown syntax

The right-side toc format "macro" (put in quotes because it's not really a macro, but uses the macro markup) uses the format {{>toc}}. The markdown html highlighter seems to take the bare > at the beginning and turn it into >. The regexp that redmine is using to look for the TOC alignment is:

TOC_RE = /<p>\{\{([<>]?)toc\}\}<\/p>/i 

(found in redmine/app/helpers/application_helper.rb on line 881 as of version 2.0.3)

Unfortunately, just changing the TOC_RE definition won't solve the problem as the replace_toc method which uses the regex looks for the > character explicitly. Perhaps a replacement replace_toc method should be supplied with this plugin to handle this case?

jstoolbar doesn't show up whit redmine 2.0.3

jstoolbar doesn't show up whit redmine 2.0.3

so I modify the redmine_redcarpet_formatter/lib/redmine/wiki_formatting/markdown/helper.rb

change
var toolbar = new jsToolBar($('#{field_id}'));

to
var toolbar = new jsToolBar(document.getElementById('#{field_id}'));

then it wokrs. Please update your code. Thanks, and I love this plugin.

Problem formatter link to Wiki pages

Hi,
After installed this plugin I have problem with GET/response pages of Wiki. The link to URL defined page in Wiki ex. My sub page doesn't work. In URL is trunked wiki/ substring. But, after edit main page and save, the URL link is correctly. Will you have any suggestion to fix this problem ?

install error

Received this error when running the rake command from the instructions.

** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
cannot load such file -- redcarpet
/var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in require' /var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:inblock in require'
/var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in load_dependency' /var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:inrequire'
/usr/share/redmine/plugins/redmine_redcarpet_formatter/lib/redmine/wiki_formatting/markdown/formatter.rb:20:in <top (required)>' /var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:inrequire'
/var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in block in require' /var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:inload_dependency'
/var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in require' /usr/share/redmine/plugins/redmine_redcarpet_formatter/init.rb:19:in<top (required)>'
/var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in require' /var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:inblock in require'
/var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in load_dependency' /var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:inrequire'
/usr/share/redmine/lib/redmine/plugin.rb:129:in block in load' /usr/share/redmine/lib/redmine/plugin.rb:120:ineach'
/usr/share/redmine/lib/redmine/plugin.rb:120:in load' /usr/share/redmine/config/initializers/30-redmine.rb:13:in<top (required)>'
/var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:in load' /var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:inblock in load'
/var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in load_dependency' /var/lib/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:245:inload'
/var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:588:in block (2 levels) in <class:Engine>' /var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:587:ineach'
/var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:587:in block in <class:Engine>' /var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:ininstance_exec'
/var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in run' /var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:55:inblock in run_initializers'
/var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in each' /var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:inrun_initializers'
/var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:136:in initialize!' /var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:inmethod_missing'
/usr/share/redmine/config/environment.rb:14:in <top (required)>' /var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:103:inrequire'
/var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:103:in require_environment!' /var/lib/gems/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:292:inblock (2 levels) in initialize_tasks'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in call' /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:inblock in execute'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in each' /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:inexecute'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in block in invoke_with_call_chain' /usr/lib/ruby/1.9.1/monitor.rb:211:inmon_synchronize'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in invoke_with_call_chain' /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:176:inblock in invoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in each' /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:ininvoke_prerequisites'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:157:in block in invoke_with_call_chain' /usr/lib/ruby/1.9.1/monitor.rb:211:inmon_synchronize'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in invoke_with_call_chain' /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:ininvoke'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in invoke_task' /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:inblock (2 levels) in top_level'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in each' /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:inblock in top_level'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:intop_level'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in block in run' /var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:instandard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in run' /var/lib/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in<top (required)>'
/usr/local/bin/rake:19:in load' /usr/local/bin/rake:19:in

'
Tasks: TOP => redmine:plugins:migrate => environment

missing copyright/license information

Hi,

Thank you for a fantastic plugin.
Markdown functionality for Redmine is much appreciated.

Unfortunately at the moment it is not possible to package your work for GNU/Linux distributions due to missing copyright and licensing information.

Would it be possible to attach copyright statement with decent copyleft license like GPL-2+ or even GPL-3+ please?

I hope this would be easy to do.

Thank you.

Regards,
Dmitry.

Auto-referencing to commit from Redmine results in useless string

Use case:

  • I do some modification in my repository
  • I commit
  • I fetch the changeset
  • My issue is being associated with my commit (using fixes|refs #ISSUEID)

It results in Applied by commit repo|commit:b9df09eb548ba56a4d2e0d12f3c08fc78bcf735 but it should link to the associated commit instead.

Links with closed parens boken

Using a link like this:

http://en.wikipedia.org/wiki/Nightfall_(Asimov_short_story)

in a markdown link like:

[Nightfall](http://en.wikipedia.org/wiki/Nightfall_(Asimov_short_story))

is not rendered correctly as the first close parens is used to close the link, instead of the second parens. The rendered link is:

http://en.wikipedia.org/wiki/Nightfall_(Asimov_short_story

which is broken. I think the parser needs to use a stack to remember if a closed parens was found in the link it self ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.