aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2018-06-20 08:26:05 +0800
committerAndy Green <andy@warmcat.com>2018-06-29 07:53:21 +0800
commit00ae381bf5af73e74a8904592b8ae28950dcdc5a (patch)
tree1a43799eda67ee6b801a7d0c8706aded581a6258
parentrender: adapt for providing extra filter args for plain (diff)
downloadcgit-00ae381bf5af73e74a8904592b8ae28950dcdc5a.tar.xz
cgit-00ae381bf5af73e74a8904592b8ae28950dcdc5a.zip
md2html: change css name to not conflict with highlight
md2html gets pygments to define the css for "highlight", making display of the blame view fragile against pygments version. On Fedora 28 / python3-pygments-2.2.0-10.fc28.noarch, "highlight" gets redefined so it no longer displays at the top of its parent. This patch changes the css class name used by md2html to "md2html_highlight" so there is no conflict with other definitions of "highlight". Signed-off-by: Andy Green <andy@warmcat.com>
-rwxr-xr-xfilters/html-converters/md2html6
1 files changed, 3 insertions, 3 deletions
diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html
index 6f4f1b3..00cf73a 100755
--- a/filters/html-converters/md2html
+++ b/filters/html-converters/md2html
@@ -305,7 +305,7 @@ sys.stdout.write('''
border: none;
background: transparent;
}
-.markdown-body .highlight pre, .markdown-body pre {
+.markdown-body .md2html_highlight pre, .markdown-body pre {
background-color: #f8f8f8;
border: 1px solid #ccc;
font-size: 13px;
@@ -321,7 +321,7 @@ sys.stdout.write('''
border: none;
}
''')
-sys.stdout.write(HtmlFormatter(style='pastie').get_style_defs('.highlight'))
+sys.stdout.write(HtmlFormatter(style='pastie').get_style_defs('.md2html_highlight'))
sys.stdout.write('''
</style>
''')
@@ -334,7 +334,7 @@ extensions = [
"markdown.extensions.tables"
]
extension_configs = {
- "markdown.extensions.codehilite":{"css_class":"highlight"}
+ "markdown.extensions.codehilite":{"css_class":"md2html_highlight"}
}
if len(sys.argv) > 2: