claudioc / jingo

Node.js based Wiki
MIT License
1.02k stars 185 forks source link

{{TOC}} / allowHTML: true #254

Open achimwessling opened 5 years ago

achimwessling commented 5 years ago

Today I merged to the actual version, mostly because I'd like to use {{TOC}} on some pages of mine. My aim was to define some CSS to make it look a bit better. Unfortunately the output of {{TOC}} isn't defined inside a DIV-tag. So I tried to define them inside the markdown. The result isn't satisfying.

Later on I tried to document my steps inside jingo. With the option allowHtml being true, it is NOT POSSIBLE to use the following code:

`{{TOC}}`

The easiest solution seams to be putting the output of {{TOC}} inside a DIV with its own class.

Maybe, if you give me a hint I can prepare a solution. ;-)