Numbering of levels 4-6

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Numbering of levels 4-6

pepijnve
In asciidoctor 0.1.3 numbering is limited to levels 0-3, which is hardcoded in the code. I'm thinking of extracting this hardcoded limit to an attribute (e.g., numbereddepth or something like that) that defaults to the current limit. Would there be any objection to this? Is the current limit there for a specific reason?
Reply | Threaded
Open this post in threaded view
|

Re: Numbering of levels 4-6

LightGuardjp
My guess is the limit is there because that's what AsciiDoc used. Initially this was as close to a compliant port as we could get. Since 0.1.1 we've branched out and made changes and extended things. I don't see any reason not to remove the limit.


On Fri, Aug 9, 2013 at 12:12 PM, pepijnve [via Asciidoctor :: Discussion] <[hidden email]> wrote:
In asciidoctor 0.1.3 numbering is limited to levels 0-3, which is hardcoded in the code. I'm thinking of extracting this hardcoded limit to an attribute (e.g., numbereddepth or something like that) that defaults to the current limit. Would there be any objection to this? Is the current limit there for a specific reason?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Numbering-of-levels-4-6-tp447.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Numbering of levels 4-6

mojavelinux
Administrator
In reply to this post by pepijnve
I completely agree. There is no reason why this limit has to be hardcoded. This is definitely a candidate for a document attribute (e.g., sectnumdepth).

I have filed this as an issue. If you'd like to provide feedback, or give implementation a shot, your more than welcome!



On Fri, Aug 9, 2013 at 12:11 PM, pepijnve [via Asciidoctor :: Discussion] <[hidden email]> wrote:
In asciidoctor 0.1.3 numbering is limited to levels 0-3, which is hardcoded in the code. I'm thinking of extracting this hardcoded limit to an attribute (e.g., numbereddepth or something like that) that defaults to the current limit. Would there be any objection to this? Is the current limit there for a specific reason?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Numbering-of-levels-4-6-tp447.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Numbering of levels 4-6

mojavelinux
Administrator
In reply to this post by LightGuardjp
Exactly. The first goal was to be perfectly compliant with AsciiDoc. With the exception of minor exceptions here and there, we've reached that point. Now, we get to take a closer look at the syntax and behavior of the processor and decide how we want to evolve it.

-Dan


On Fri, Aug 9, 2013 at 12:19 PM, LightGuardjp [via Asciidoctor :: Discussion] <[hidden email]> wrote:
My guess is the limit is there because that's what AsciiDoc used. Initially this was as close to a compliant port as we could get. Since 0.1.1 we've branched out and made changes and extended things. I don't see any reason not to remove the limit.


On Fri, Aug 9, 2013 at 12:12 PM, pepijnve [via Asciidoctor :: Discussion] <[hidden email]> wrote:
In asciidoctor 0.1.3 numbering is limited to levels 0-3, which is hardcoded in the code. I'm thinking of extracting this hardcoded limit to an attribute (e.g., numbereddepth or something like that) that defaults to the current limit. Would there be any objection to this? Is the current limit there for a specific reason?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Numbering-of-levels-4-6-tp447.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Numbering-of-levels-4-6-tp447p449.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Numbering of levels 4-6

mojavelinux
Administrator
In reply to this post by mojavelinux
This feature has been implemented for the upcoming 1.5.0 release.

See https://github.com/asciidoctor/asciidoctor/issues/549 for details.

I decided to use an attribute named "sectnumlevels" to control the depth of numbering.

-Dan