Skip to content

Rendering ToC #15

@sif

Description

@sif

Scenario: you're writing the world's shortest book.

You have a few headings and a ToC to go with it.

${toc}

## Chapter 1

## Chapter 2

## Chapter 3

But say you decide you want to use variables for the chapters just because.

`import example`

${toc}

## $chapter1

## $chapter2

## $chapter3

The ToC doesn't render the headings. It would be nice if it did. I'm not sure if it's the markdown limitation (for the same reason why underline is not supported) or something that can be done.

On a small side note, is it safe to add comments to the variable pages? Like so:

|  variable  |   value   | comment |
| ---------- | --------- | --------- |
|  $chapter1  | Chapter 1  | Start of the book |

Or even this in the next few lines?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions