From 9dff075fb065d7b97db9663f98af25efe016a9e2 Mon Sep 17 00:00:00 2001 From: tilpner Date: Fri, 3 May 2019 15:31:59 +0200 Subject: Prevent selection of line numbers in blink --- src/code.html | 3 +++ src/main.rs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/code.html b/src/code.html index 1e009d6..f459b4e 100644 --- a/src/code.html +++ b/src/code.html @@ -26,6 +26,9 @@ color: #586e75; text-decoration: none; } + .linenumbers a:after \{ + content: attr(data-txt); + }
diff --git a/src/main.rs b/src/main.rs index a86f1c8..6413bea 100644 --- a/src/main.rs +++ b/src/main.rs @@ -192,9 +192,9 @@ fn highlight(cfg: &Config, mut input: Box"); + let _ = write!(&mut html, "
|