List for cgit developers and users
 help / color / mirror / Atom feed
From: lukasz at jany.st (Lukasz Janyst)
Subject: Render markdown files in tree view
Date: Thu, 08 Dec 2016 16:06:01 +0100	[thread overview]
Message-ID: <1481209561.3802441.812683353.7B835337@webmail.messagingengine.com> (raw)

Hey there,

First of all, thanks for all the great work on cgit. Awesome stuff!

In my setup, I like to have the markdown files in the repos rendered as
HTML instead of having them highlighted as code. Turns out it's fairly
easy to achieve using filters. I attach the necessary patches. Feel free
to commit if you think they are generally useful.

Cheers,
   Lukasz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ui-tree-don-t-assume-that-a-source-filter-must-rende.patch
Type: text/x-patch
Size: 1109 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20161208/195f668b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ui-tree-pass-full-file-path-to-source-filters.patch
Type: text/x-patch
Size: 2405 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20161208/195f668b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-filters-add-source-filter-highlighting-code-and-rend.patch
Type: text/x-patch
Size: 5365 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20161208/195f668b/attachment-0002.bin>


             reply	other threads:[~2016-12-08 15:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08 15:06 lukasz [this message]
2016-12-08 20:18 ` john
2016-12-08 22:53   ` lukasz
2016-12-14 13:39 andy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1481209561.3802441.812683353.7B835337@webmail.messagingengine.com \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).