diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-26 13:41:25 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-26 13:41:25 +0300 |
commit | 6633589d81213e2c65452825facf4017d2fc4986 (patch) | |
tree | b12a07c597eebff0ff2d7536ecc988027cf22f52 /docker/frontend/usr/lib | |
parent | workflows/ci: skip the example config test for PyPI builds (diff) | |
download | cgitize-6633589d81213e2c65452825facf4017d2fc4986.tar.gz cgitize-6633589d81213e2c65452825facf4017d2fc4986.zip |
docker: add comments to frontend configuration
Diffstat (limited to '')
-rwxr-xr-x | docker/frontend/usr/lib/cgit/filters/html-converters/md2html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/frontend/usr/lib/cgit/filters/html-converters/md2html b/docker/frontend/usr/lib/cgit/filters/html-converters/md2html index ee3768b..b11f936 100755 --- a/docker/frontend/usr/lib/cgit/filters/html-converters/md2html +++ b/docker/frontend/usr/lib/cgit/filters/html-converters/md2html @@ -1,5 +1,7 @@ #!/usr/bin/env dash +# The <style>sheet has been copied from the upstream script. + cat <<EOF <style> .markdown-body { @@ -284,6 +286,9 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# </style> EOF +# Use cmark-gfm, in the vain hope that it will bring the README.md files closer +# to what GitHub uses. + echo "<div class='markdown-body'>" cmark-gfm --extension table --extension autolink echo "</div>" |