summary refs log tree commit diff
path: root/www/git.causal.agency/cgit/filters
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-06-08 14:30:12 -0400
committerJune McEnroe <june@causal.agency>2021-06-08 14:34:33 -0400
commitd7bd11e9b326caad68b88ae5804b7b97c9282c16 (patch)
tree14b07a9e9865abc4c57513189e31af0afb6358fa /www/git.causal.agency/cgit/filters
parentFetch git .tar.gz for compatibility (diff)
parentSquashed 'www/git.causal.agency/cgit/' changes from 55fa25ad..5258c297 (diff)
downloadsrc-d7bd11e9b326caad68b88ae5804b7b97c9282c16.tar.gz
src-d7bd11e9b326caad68b88ae5804b7b97c9282c16.zip
Merge commit 'f46c4521d761a0b9909e17ef29065c0aa09c7ab7'
Diffstat (limited to 'www/git.causal.agency/cgit/filters')
-rwxr-xr-xwww/git.causal.agency/cgit/filters/commit-links.sh2
-rwxr-xr-xwww/git.causal.agency/cgit/filters/html-converters/md2html7
2 files changed, 3 insertions, 6 deletions
diff --git a/www/git.causal.agency/cgit/filters/commit-links.sh b/www/git.causal.agency/cgit/filters/commit-links.sh
index 58819524..796ac308 100755
--- a/www/git.causal.agency/cgit/filters/commit-links.sh
+++ b/www/git.causal.agency/cgit/filters/commit-links.sh
@@ -19,7 +19,7 @@ regex=''
 
 # This expression generates links to commits referenced by their SHA1.
 regex=$regex'
-s|\b([0-9a-fA-F]{7,40})\b|<a href="./?id=\1">\1</a>|g'
+s|\b([0-9a-fA-F]{7,64})\b|<a href="./?id=\1">\1</a>|g'
 
 # This expression generates links to a fictional bugtracker.
 regex=$regex'
diff --git a/www/git.causal.agency/cgit/filters/html-converters/md2html b/www/git.causal.agency/cgit/filters/html-converters/md2html
index dc20f42a..59f43a84 100755
--- a/www/git.causal.agency/cgit/filters/html-converters/md2html
+++ b/www/git.causal.agency/cgit/filters/html-converters/md2html
@@ -86,11 +86,7 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div#
     margin: 15px 0;
 }
 .markdown-body hr {
-    background: transparent url("/dirty-shade.png") repeat-x 0 0;
-    border: 0 none;
-    color: #ccc;
-    height: 4px;
-    padding: 0;
+    border: 2px solid #ccc;
 }
 .markdown-body>h2:first-child, .markdown-body>h1:first-child, .markdown-body>h1:first-child+h2, .markdown-body>h3:first-child, .markdown-body>h4:first-child, .markdown-body>h5:first-child, .markdown-body>h6:first-child {
     margin-top: 0;
@@ -301,6 +297,7 @@ markdown.markdownFromFile(
 		"markdown.extensions.fenced_code",
 		"markdown.extensions.codehilite",
 		"markdown.extensions.tables",
+		"markdown.extensions.sane_lists",
 		TocExtension(anchorlink=True)],
 	extension_configs={
 		"markdown.extensions.codehilite":{"css_class":"highlight"}})