Skip to content

Mini-TOC Macro #245

Description

@eguvep

Thanks for providing LiaScript! It is much improving how we provide OER content!
Structuring my courses, I regularly end up with slides that are empty, except of the chapter-title. This pages may appear to users as if the content is not loading or so.
Wouldn't it be nice to have a mini table of contents (mini-toc) on this empty pages, just listing the sub-chapters?
It is possible to create such a mini-toc manually:

# heading

[subheading1](#subheading1)

[subheading2](#subheading2)

## subheading1

lorem ipsum

## subheading2

lorem ipsum

It would be more convenient to have something like this:

# heading

@mini-toc

## subheading1

lorem ipsum

## subheading2

lorem ipsum

You find an example course at https://fh.ms/floss.
I tried to write a JavaScript but failed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions