1local in_module_section = false
3function pandoc_module_blocks()
4 local tmp_folder = os.tmpname()
6 os.execute("mkdir -p " .. tmp_folder)
7 os.execute("ldoc -q -l tools -d " .. tmp_folder .. " data/pandoc.lua")
8 local module_file = io.open(tmp_folder .. "/index.html")
9 local module_html = module_file:read("*a")
10 local module_doc = pandoc.read(module_html, "html")
11 return module_doc.blocks
15 if in_module_section then
17 in_module_section = false
22 elseif el.identifier == "module-pandoc" then
23 in_module_section = true
24 return pandoc_module_blocks()
29 if in_module_section then
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list