atom-asciidoc-preview
atom-asciidoc-preview copied to clipboard
Add additional values to toc option
Description
The toc option currently does not reflect all the possible values. It's missing:
- not set (present, but called "none")
- on (the same as a blank value, or
-a toc
) - off (the same as unset, or
-a toc!
)
The current "none" value is acting as the "not-specified" value, but it is not clear enough to the user that this is what the option means. In fact, I would prefer the name "not set" for this value as this terminology is consistent with the Asciidoctor user manual.
If we decide to rename "not-specifed" to "not set", then we should also change the corresponding value for the section numbering option.
- Atom version: 1.20.0-beta1
- OS: Fedora
-
asciidoc-preview
version: 2.10.2
Today we have 3 options:
https://github.com/asciidoctor/atom-asciidoc-preview/blob/fd76a3e0c3ac8184a45c67933eada8a5564c2850/package.json#L79-L90
In the code: https://github.com/asciidoctor/atom-asciidoc-preview/blob/fd76a3e0c3ac8184a45c67933eada8a5564c2850/lib/configuration-builder.coffee#L21-L30
Do you want me to add 2 new options and rename none
to not-set
?