Differences From
Artifact [706a61f3d9]:
31 31 id = 'toc';
32 32 desc = 'provides a table of contents for HTML renderer plus generic fallback';
33 33 version = ss.version {0,1; 'devel'};
34 34 contributors = {{name='lexi hale', handle='velartrill', mail='lexi@hale.su', homepage='https://hale.su'}};
35 35 default = true; -- on unless inhibited
36 36 hook = {
37 37 doc_init = function(job)
38 - print('initing doc:toc',job.doc)
39 38 job.state.toc_custom_position = false
40 39 end;
41 40
42 41 render_html_init = function(job, render)
43 42 render.stylesets.toc = css_toc
44 43 render.stylesets.tocFixed = css_toc_fixed
45 44 end;
................................................................................
168 167 attrs = {href = '#' .. l.id};
169 168 nodes = {sr.htmlSpan(l.label, l.block, sec)};
170 169 }
171 170 table.insert(n.nodes, {tag = 'li', attrs = {}, nodes={nn}})
172 171 end
173 172 table.insert(ent.nodes, n)
174 173 end
175 - print(ss.dump(ent))
176 174 end
177 175 end
178 176 return lst
179 177 end;
180 178
181 179 [true] = function() end; -- fallback // convert to different node types
182 180 };
183 181 };
184 182 }