Markdown Redmine



  1. Redmine Markdown Toc
  2. Redmine Markdown Enable Html
  3. Redmine Markdown Image Size
  4. Redmine Text Color
  5. Redmine Textile

Feature #29752

I put the following to home page in Redmine 4.1 on RHEL 7, which is using Markdown as Text formatting:!grey(1280x40-grey.png) I put this into Administration - Settings - General - Welcome text. Now, where should I put file 1280x40-grey.png to show it. Have been tried to put it into files or upload as File or upload as attachment to one. Text formatting For things such as headlines, bold, tables, lists, Redmine supports Markdown syntax. See for information on using any of these features. A few samples are included below, but the engine is capable of much more of that.

Render Textile and Markdown attachments on the preview page

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Attachments
Target version:4.1.0
Resolution:Fixed

Description

Currently, Textile and Markdown files are treated as plain text when previewing an attachment.

I think it is more convenient for users to render those as HTML as if they are written in a Wiki page. Raw markups such as 'h1.', 'h2.', and 'h3.' are not friendly for humans.

29752.patch(4.14 KB) Acrosoft application software update for elpdc06 download mac.

add-border-before@2x.png(68.8 KB)

add-border-after@2x.png(69 KB)

Does allen and heath zed have a mac software download. Related issues

Associated revisions

Revision 18584

Render Textile and Markdown attachments on the preview page (#29752).

Patch by Takenori TAKAKI.

Revision 18585

Add styles for Textile/Markdown attachments preview (#29752).

Patch by Go MAEDA.

Revision 18586

Use Redmine::MimeType.of instead of regexp to check if the attachment is Textile (#29752).

History

#1 Updated by Go MAEDAover 2 years ago

  • Related toFeature #13431: it would be nice to render the markup language in the 'Repository' view added

#2 Updated by Takenori TAKAKIover 2 years ago

Markdown Redmine
  • File29752.patch added

Redmine Markdown Toc

+1
I think it is very useful that the feature proposed by Go MAEDA.
I made a patch to add the feature, and attach it.

#3 Updated by Go MAEDAover 2 years ago

  • Target version set to 4.1.0

#4 Updated by Go MAEDAalmost 2 years ago

  • Related toFeature #16849: Add Markdown rendering in Reposotory -> View | Annotate added

#5 Updated by Marius BALTEANUover 1 year ago

  • Status changed from New to Needs feedback

The patch looks good to me with one small observation, do you see any problem if we add 'text/textile' => 'textile' to MIME_TYPES? In this way, we can replace in the patch self.filename =~ /.(textile)$/i with Redmine::MimeType.of(filename) 'text/textile'.

#6 Updated by Marius BALTEANUover 1 year ago

  • Assignee set to Go MAEDA
Markdown

#7 Updated by Go MAEDAover 1 year ago

  • Fileadd-border-before@2x.png added
  • Fileadd-border-after@2x.png added

I suggest adding the following change to the patch in order to make distinguishable between the UI of Redmine and the content of the file by adding a border around the content.

Before:

After:

#8 Updated by Go MAEDAover 1 year ago

  • Status changed from Needs feedback to Closed
  • Resolution set to Fixed

Committed the patch. Thank you all for contributing and reviewing the patch.

#9 Updated by Go MAEDAover 1 year ago

  • Subject changed from Render Textile and Markdown attachments as HTML on the preview page to Render Textile and Markdown attachments on the preview page

#10 Updated by Mischa The Evilover 1 year ago

Go MAEDA wrote:

Committed the patch. [..]

What about the note Marius made in #29752#note-5?

#11 Updated by Go MAEDAover 1 year ago

  • Status changed from Closed to Reopened

Mischa The Evil wrote:

What about the note Marius made in #29752#note-5?

Oh, I forgot to handle that. Thank you for pointing it out.

Marius BALTEANU wrote:

The patch looks good to me with one small observation, do you see any problem if we add 'text/textile' => 'textile' to MIME_TYPES? In this way, we can replace in the patch self.filename =~ /.(textile)$/i with Redmine::MimeType.of(filename) 'text/textile'.

I like the approach but there is only one problem that 'text/textile' is not a valid media type (see https://www.iana.org/assignments/media-types/media-types.xhtml). Maybe we can use 'text/x-textile' instead, what do you think?

#12 Updated by Marius BALTEANUover 1 year ago

Adobe acrobat xi pro 11.0.08 mac download. Go MAEDA wrote:

Marius BALTEANU wrote:

The patch looks good to me with one small observation, do you see any problem if we add 'text/textile' => 'textile' to MIME_TYPES? In this way, we can replace in the patch self.filename =~ /.(textile)$/i with Redmine::MimeType.of(filename) 'text/textile'.

I like the approach but there is only one problem that 'text/textile' is not a valid media type (see https://www.iana.org/assignments/media-types/media-types.xhtml). Maybe we can use 'text/x-textile' instead, what do you think?

I like your idea to use 'text/x-textile'.

Redmine Markdown Enable Html

#13 Updated by Go MAEDAover 1 year ago

This patch replaces the regexp that checks '.textile' extension with Redmine::MimeType.of.

Redmine Markdown Image Size

#14 Updated by Go MAEDAover 1 year ago

Redmine Text Color

  • Status changed from Reopened to Closed

Redmine Textile

Also available in: AtomPDF