From e8170f83794d535ed9166d5b74b264590298f518 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 10 Jan 2021 18:48:36 +0800 Subject: [PATCH] Prevent the URLs of code block from being clickable --- assets/css/_addon/syntax.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/assets/css/_addon/syntax.scss b/assets/css/_addon/syntax.scss index 4601935..c8a9aae 100644 --- a/assets/css/_addon/syntax.scss +++ b/assets/css/_addon/syntax.scss @@ -132,6 +132,15 @@ code { td.rouge-code { padding: 1.5rem 1.5rem 1.5rem 1rem; + + // Prevent some browser extends from + // changing the URL string of code block. + a { + color: inherit !important; + border-bottom: none !important; + pointer-events: none; + } + } /* Hide line numbers for default, console, and terminal code snippets */