atom-asciidoc-preview icon indicating copy to clipboard operation
atom-asciidoc-preview copied to clipboard

settings :toclevels: removes the table of contents

Open ghost opened this issue 6 years ago • 1 comments

Running latest build of atom and latest version of this package on Linux Mint. When I have ""toclevels: 4" set (or set to any number), the preview quits showing the table of contents.

ghost avatar Mar 23 '18 20:03 ghost

Works for me (Atom 1.31.1 x64). Do you have a syntax error? ":toclevels: 4". IMPORTANT: after the :toc: and before the next title tag, it needs some text block. This can be the {empty} block as below.

Try this snippet. :

= ACME product catalog
{empty}
{docVersion}, {localdate} {localtime}
:date: {buildDate}
:toc:
:toclevels: 3

{empty}

== Introduction
=== Safety instructions
=== Legal Disclaimer
==== Endless Legal Shit
===== You never gonna read this
hello world.

== Products
. product 1
. product 2

lbreuss avatar Dec 26 '18 13:12 lbreuss