JuliaPluto / PlutoUI.jl

https://featured.plutojl.org/basic/plutoui.jl
The Unlicense
299 stars 54 forks source link

Add cells that evaluate to docstrings to ToC #229

Closed jerlich closed 1 year ago

jerlich commented 1 year ago

This is similar to #116.

Currently, i have use a style where i have cells like

function doit(x)
...
end; md"#### doit - a function that does it"

so that my cell ends up in the ToC so i can jump to it easily.

But i think i would prefer to just have a docstring and have an option that cells with docstrings added to the Table of Contents.

It is possible to add this as an option?

fonsp commented 1 year ago

Hey @jerlich !

This feature got added recently, take a look at #226

Use it with

TableOfContents(include_definitions=true)