From 7c114f28d1be442a438796dcebf4896e1d802dbd Mon Sep 17 00:00:00 2001 From: Tan Yuanhong Date: Wed, 22 Apr 2020 11:33:19 +0800 Subject: [PATCH 1/2] Make code background transparent under highlighting --- asset/css/markbind.css | 4 ++++ test/functional/test_site/expected/markbind/css/markbind.css | 4 ++++ .../expected/markbind/css/markbind.css | 4 ++++ .../test_site_convert/expected/markbind/css/markbind.css | 4 ++++ .../expected/markbind/css/markbind.css | 4 ++++ .../test_site_special_tags/expected/markbind/css/markbind.css | 4 ++++ .../test_default/expected/markbind/css/markbind.css | 4 ++++ .../test_minimal/expected/markbind/css/markbind.css | 4 ++++ 8 files changed, 32 insertions(+) diff --git a/asset/css/markbind.css b/asset/css/markbind.css index 13f91e660b..5e6415c51b 100644 --- a/asset/css/markbind.css +++ b/asset/css/markbind.css @@ -11,6 +11,10 @@ code { word-break: normal; } +mark > code { + background: #ffffffd4; +} + pre.hljs > code { background: none; } diff --git a/test/functional/test_site/expected/markbind/css/markbind.css b/test/functional/test_site/expected/markbind/css/markbind.css index 13f91e660b..5e6415c51b 100644 --- a/test/functional/test_site/expected/markbind/css/markbind.css +++ b/test/functional/test_site/expected/markbind/css/markbind.css @@ -11,6 +11,10 @@ code { word-break: normal; } +mark > code { + background: #ffffffd4; +} + pre.hljs > code { background: none; } diff --git a/test/functional/test_site_algolia_plugin/expected/markbind/css/markbind.css b/test/functional/test_site_algolia_plugin/expected/markbind/css/markbind.css index 13f91e660b..5e6415c51b 100644 --- a/test/functional/test_site_algolia_plugin/expected/markbind/css/markbind.css +++ b/test/functional/test_site_algolia_plugin/expected/markbind/css/markbind.css @@ -11,6 +11,10 @@ code { word-break: normal; } +mark > code { + background: #ffffffd4; +} + pre.hljs > code { background: none; } diff --git a/test/functional/test_site_convert/expected/markbind/css/markbind.css b/test/functional/test_site_convert/expected/markbind/css/markbind.css index 13f91e660b..5e6415c51b 100644 --- a/test/functional/test_site_convert/expected/markbind/css/markbind.css +++ b/test/functional/test_site_convert/expected/markbind/css/markbind.css @@ -11,6 +11,10 @@ code { word-break: normal; } +mark > code { + background: #ffffffd4; +} + pre.hljs > code { background: none; } diff --git a/test/functional/test_site_expressive_layout/expected/markbind/css/markbind.css b/test/functional/test_site_expressive_layout/expected/markbind/css/markbind.css index 13f91e660b..5e6415c51b 100644 --- a/test/functional/test_site_expressive_layout/expected/markbind/css/markbind.css +++ b/test/functional/test_site_expressive_layout/expected/markbind/css/markbind.css @@ -11,6 +11,10 @@ code { word-break: normal; } +mark > code { + background: #ffffffd4; +} + pre.hljs > code { background: none; } diff --git a/test/functional/test_site_special_tags/expected/markbind/css/markbind.css b/test/functional/test_site_special_tags/expected/markbind/css/markbind.css index 13f91e660b..5e6415c51b 100644 --- a/test/functional/test_site_special_tags/expected/markbind/css/markbind.css +++ b/test/functional/test_site_special_tags/expected/markbind/css/markbind.css @@ -11,6 +11,10 @@ code { word-break: normal; } +mark > code { + background: #ffffffd4; +} + pre.hljs > code { background: none; } diff --git a/test/functional/test_site_templates/test_default/expected/markbind/css/markbind.css b/test/functional/test_site_templates/test_default/expected/markbind/css/markbind.css index 13f91e660b..5e6415c51b 100644 --- a/test/functional/test_site_templates/test_default/expected/markbind/css/markbind.css +++ b/test/functional/test_site_templates/test_default/expected/markbind/css/markbind.css @@ -11,6 +11,10 @@ code { word-break: normal; } +mark > code { + background: #ffffffd4; +} + pre.hljs > code { background: none; } diff --git a/test/functional/test_site_templates/test_minimal/expected/markbind/css/markbind.css b/test/functional/test_site_templates/test_minimal/expected/markbind/css/markbind.css index 13f91e660b..5e6415c51b 100644 --- a/test/functional/test_site_templates/test_minimal/expected/markbind/css/markbind.css +++ b/test/functional/test_site_templates/test_minimal/expected/markbind/css/markbind.css @@ -11,6 +11,10 @@ code { word-break: normal; } +mark > code { + background: #ffffffd4; +} + pre.hljs > code { background: none; } From c576c45f36a30e331aa6ec5552c9206b32eb10c3 Mon Sep 17 00:00:00 2001 From: Tan Yuanhong Date: Thu, 23 Apr 2020 20:35:10 +0800 Subject: [PATCH 2/2] Resolve comments --- asset/css/markbind.css | 2 +- test/functional/test_site/expected/markbind/css/markbind.css | 2 +- .../test_site_algolia_plugin/expected/markbind/css/markbind.css | 2 +- .../test_site_convert/expected/markbind/css/markbind.css | 2 +- .../expected/markbind/css/markbind.css | 2 +- .../test_site_special_tags/expected/markbind/css/markbind.css | 2 +- .../test_default/expected/markbind/css/markbind.css | 2 +- .../test_minimal/expected/markbind/css/markbind.css | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/asset/css/markbind.css b/asset/css/markbind.css index 5e6415c51b..6e3274a5dc 100644 --- a/asset/css/markbind.css +++ b/asset/css/markbind.css @@ -11,7 +11,7 @@ code { word-break: normal; } -mark > code { +mark code { background: #ffffffd4; } diff --git a/test/functional/test_site/expected/markbind/css/markbind.css b/test/functional/test_site/expected/markbind/css/markbind.css index 5e6415c51b..6e3274a5dc 100644 --- a/test/functional/test_site/expected/markbind/css/markbind.css +++ b/test/functional/test_site/expected/markbind/css/markbind.css @@ -11,7 +11,7 @@ code { word-break: normal; } -mark > code { +mark code { background: #ffffffd4; } diff --git a/test/functional/test_site_algolia_plugin/expected/markbind/css/markbind.css b/test/functional/test_site_algolia_plugin/expected/markbind/css/markbind.css index 5e6415c51b..6e3274a5dc 100644 --- a/test/functional/test_site_algolia_plugin/expected/markbind/css/markbind.css +++ b/test/functional/test_site_algolia_plugin/expected/markbind/css/markbind.css @@ -11,7 +11,7 @@ code { word-break: normal; } -mark > code { +mark code { background: #ffffffd4; } diff --git a/test/functional/test_site_convert/expected/markbind/css/markbind.css b/test/functional/test_site_convert/expected/markbind/css/markbind.css index 5e6415c51b..6e3274a5dc 100644 --- a/test/functional/test_site_convert/expected/markbind/css/markbind.css +++ b/test/functional/test_site_convert/expected/markbind/css/markbind.css @@ -11,7 +11,7 @@ code { word-break: normal; } -mark > code { +mark code { background: #ffffffd4; } diff --git a/test/functional/test_site_expressive_layout/expected/markbind/css/markbind.css b/test/functional/test_site_expressive_layout/expected/markbind/css/markbind.css index 5e6415c51b..6e3274a5dc 100644 --- a/test/functional/test_site_expressive_layout/expected/markbind/css/markbind.css +++ b/test/functional/test_site_expressive_layout/expected/markbind/css/markbind.css @@ -11,7 +11,7 @@ code { word-break: normal; } -mark > code { +mark code { background: #ffffffd4; } diff --git a/test/functional/test_site_special_tags/expected/markbind/css/markbind.css b/test/functional/test_site_special_tags/expected/markbind/css/markbind.css index 5e6415c51b..6e3274a5dc 100644 --- a/test/functional/test_site_special_tags/expected/markbind/css/markbind.css +++ b/test/functional/test_site_special_tags/expected/markbind/css/markbind.css @@ -11,7 +11,7 @@ code { word-break: normal; } -mark > code { +mark code { background: #ffffffd4; } diff --git a/test/functional/test_site_templates/test_default/expected/markbind/css/markbind.css b/test/functional/test_site_templates/test_default/expected/markbind/css/markbind.css index 5e6415c51b..6e3274a5dc 100644 --- a/test/functional/test_site_templates/test_default/expected/markbind/css/markbind.css +++ b/test/functional/test_site_templates/test_default/expected/markbind/css/markbind.css @@ -11,7 +11,7 @@ code { word-break: normal; } -mark > code { +mark code { background: #ffffffd4; } diff --git a/test/functional/test_site_templates/test_minimal/expected/markbind/css/markbind.css b/test/functional/test_site_templates/test_minimal/expected/markbind/css/markbind.css index 5e6415c51b..6e3274a5dc 100644 --- a/test/functional/test_site_templates/test_minimal/expected/markbind/css/markbind.css +++ b/test/functional/test_site_templates/test_minimal/expected/markbind/css/markbind.css @@ -11,7 +11,7 @@ code { word-break: normal; } -mark > code { +mark code { background: #ffffffd4; }