From 16e9f4ef0ab0ad51a7a05fd98ee1870c81b20a73 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 13 Nov 2024 22:03:17 +0000 Subject: alter extension parsing --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 21b5313..801f9d2 100644 --- a/init.lua +++ b/init.lua @@ -26,7 +26,11 @@ local function mode_code(S) text = text .. line end end - S:emit(highlight(text, lang)) + if lang then + S:emit(highlight(text, lang)) + else + S:emit(T.pre(text)) + end end local function mode_list(S) -- cgit v1.2.3