summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index dbf37bc..f57c63e 100644
--- a/init.lua
+++ b/init.lua
@@ -54,11 +54,17 @@ local function mode_hr(S)
S:emit(html.T.hr"")
end
+-- bad! bad! bad!
+local function mode_insect(S) S:line() S:emit(html.safe"<section>") end
+local function mode_unsect(S) S:line() S:emit(html.safe"</section>") end
+
local mode_patterns = {
{ "^```", mode_code },
{ "^*", mode_list },
{ "^#", mode_heading },
{ "^%-%-%-", mode_hr },
+ { "^<<", mode_insect },
+ { "^>>", mode_unsect },
}
local function match_mode_pattern(S, line)