プロジェクト

全般

プロフィール

Vote #75211

完了

Render Textile and Markdown files in the repository browser

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
3
version_id:
155
issue_org_id:
16849
author_id:
8854
assigned_to_id:
332
comments:
10
status_id:
5
tracker_id:
2
plus1:
3
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

It would be fine to render *.md in Reposotory -> View | Annotate with the redmine Markdown rendering-Engine.


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
+1 That would be a great and very useful addition. I hope that #29752 will help this feature request.
--------------------------------------------------------------------------------
+1, I'd love to see this now that #29752 has landed, and with the increasing use of Markdown everywhere.
--------------------------------------------------------------------------------
+1
I think this additional feature will be very useful.
'Anotate' would be better displayed as plain text like the Github 'blame' page.
(eg. https://github.com/ruby/ruby/blame/master/README.md)

I made a patch to preview Markdown and Textile, and attach it.
--------------------------------------------------------------------------------
#16849#note-5

> I made a patch to preview Markdown and Textile, and attach it.

When changing the repository data to 16849-subversion_repository.dump.gz, the unit test also needed to be changed.
I will post an additional patch.

--------------------------------------------------------------------------------
Takenori TAKAKI wrote:
> I made a patch to preview Markdown and Textile, and attach it.

Thank you for posting the patch.

I suggest adding the following small style changes:

* Add surrounding border as same as #29752#note-7
* Add some margin above the pagination buttons to prevent the border from overlapping with the pagination buttons

<pre><code class="diff">
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index fca5f5647..d4361bc8c 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -789,7 +789,7 @@ span.pagination {margin-left:3px; color:#888; display:block;}
font-weight: bold;
}
span.pagination>span {white-space:nowrap;}
-.controller-attachments.action-show span.pagination{
+.controller-attachments.action-show span.pagination, .controller-repositories.action-entry span.pagination {
display: block;
margin-top: 1.2em;
}
@@ -1804,7 +1804,7 @@ img {
max-width: 100%;
}

-.filecontent-container > .filecontent.wiki {
+#content .filecontent.wiki {
position: relative;
padding: 1em;
border: 1px solid #e4e4e4;
</code></pre>

!{border: 1px solid #ccc; width: 539px;}.Screenshot_2021-05-25.png!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Applied #16849#note-7 to the patch.

Setting the target version to 5.0.0.
--------------------------------------------------------------------------------
Committed the patch. Thank you for improving Redmine.

The repository browser now renders Textile and Markdown files.

!{border: 1px solid #ccc; width: 539px;}.Screenshot_2021-05-25.png!
--------------------------------------------------------------------------------


related_issues

relates,Closed,29752,Render Textile and Markdown attachments on the preview page

Admin Redmine さんが3年以上前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン5.0.0_155 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0