Skip to content
Snippets Groups Projects
Select Git revision
  • 78a22af9300498924ac4694129c96635ace3a8ef
  • main default protected
  • test_coef
  • 21-things-to-take-care-of-before-submission
4 results

custom_app.lua

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    custom_app.lua 340 B
    local in_appendix = false
    
    Header = function(h)
      if h.level == 1 then
        if h.classes:includes("appendix") then
          in_appendix = true
          h.attributes["visibility"] = "uncounted"
        else
          in_appendix = false
        end
      end
      if h.level == 2 and in_appendix then
        h.attributes["visibility"] = "uncounted"
      end
      return h
    end