Zenika / sensei

The compiler for our training material.
https://hub.docker.com/r/zenika/sensei
Other
16 stars 4 forks source link

Generate TOC in workbook #163

Closed zigarn closed 2 years ago

zigarn commented 2 years ago

Still a work in progress!

image

hgwood commented 2 years ago

Good idea :)

zigarn commented 2 years ago

Thanks for the feedback!

Weirdly, in generated PDF result is different:

image

And "Annexes" is linking to "TP 2 : Exercice suivant"... :thinking:

zigarn commented 2 years ago

OK, regexp for h2 was too eager (but don't understand why is was not in serve mode).

hgwood commented 2 years ago

The TOC now is only inserted if the marker is present in the material.

zigarn commented 2 years ago

Humm, will need to reverse the markdown processing: instead of processing each MD file individually, we need to process the concatenation of all markdown files. If we have the same title in different files, they get the same id.