Skip to content

Commit

Permalink
Merge pull request klaussilveira#168 from jasondavis/master
Browse files Browse the repository at this point in the history
Parse Markdown files
  • Loading branch information
klaussilveira committed Nov 6, 2012
2 parents 5664854 a96c5e0 commit 44ed193
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions views/file.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 19,10 @@
</div>
{% if fileType == 'image' %}
<center><img src="{{ path('blob_raw', {repo: repo, branch: branch, file: file}) }}" alt="{{ file }}" class="image-blob" /></center>

{% elseif fileType == 'markdown' %}
<div class="readme-view"><div id="readme-content">{{ blob }}</div></div>

{% else %}
<pre id="sourcecode" language="{{ fileType }}">{{ blob }}</pre>
{% endif %}
Expand Down

0 comments on commit 44ed193

Please sign in to comment.