diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |