feat: Add support for rendering .ipynb Jupyter/IPython notebooks (#491)
This commit is contained in:
committed by
GitHub
parent
53ce41e0e4
commit
c02bf97b63
2
templates/pages/gist.html
vendored
2
templates/pages/gist.html
vendored
@@ -77,6 +77,8 @@
|
||||
<div class="chroma markdown markdown-body p-8">{{ $file.HTML | safe }}</div>
|
||||
{{ else if $file.MimeType.IsSVG }}
|
||||
<div class="p-8 flex justify-center">{{ $file.HTML | safe }}</div>
|
||||
{{ else if isJupyter $file.Filename }}
|
||||
<div class="p-8 jupyter notebook"><pre>{{ $file.Content }}</pre></div>
|
||||
{{ else }}
|
||||
<div class="code">
|
||||
{{ $fileslug := slug $file.Filename }}
|
||||
|
||||
Reference in New Issue
Block a user