mirror of
https://github.com/gryf/gitea-rest-renderer.git
synced 2026-11-23 23:26:54 +01:00
Added ability for syntax highlight in code blocks.
Docutils can leverage pygments python package to create syntax highlight inside code blocks. Implementation consists two custom classes for getting HTML code tag contain appropriate class keyword and value.
This commit is contained in:
1 parent
3861302048
commit
1e88e10c78
2 files changed
+24
-3
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM gitea/gitea:latest
|
||||
COPY ./rst2htmlbody.py /bin/rst2htmlbody
|
||||
RUN apk --no-cache add py3-docutils && \
|
||||
RUN apk --no-cache add py3-docutils py3-pygments && \
|
||||
chmod 755 /bin/rst2htmlbody
|
||||
Reference in new issue
Block a user