mirror of
https://github.com/gryf/gitea-rest-renderer.git
synced 2025-12-17 03:20:27 +01:00
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.
5 lines
151 B
Docker
5 lines
151 B
Docker
FROM gitea/gitea:latest
|
|
COPY ./rst2htmlbody.py /bin/rst2htmlbody
|
|
RUN apk --no-cache add py3-docutils py3-pygments && \
|
|
chmod 755 /bin/rst2htmlbody
|