summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 5 insertions, 1 deletions
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)