Dedications

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

Dedications

ysb33r
I see from the Asciidoctor docs that [dedication] is attached to a level 0 section. Does this mean a dedication is only allowed for doctype=book?

Is there any special rules that asciidoctor-core applies to a [dedication] ?
Reply | Threaded
Open this post in threaded view
|

Re: Dedications

mojavelinux
Administrator
> I see from the Asciidoctor docs that [dedication] is attached to a level 0 section. Does this mean a dedication is only allowed for doctype=book? 

No, it means that you *can* type it on a level-0 section and it will become a level-1 section. All special sections are this way. I think the idea was that you could choose you level that is appropriate for the authoring environment, but it would still be interpreted as level-1. (I'll admit, things are a bit fuzzy here, though).

> Is there any special rules that asciidoctor-core applies to a [dedication] ? 

Nope. Other than it becomes a level-1 section automatically.


I'd actually like to change this so that the parser fixes the section level rather than the converter.

Cheers,

-Dan

On Fri, Jun 5, 2015 at 8:32 AM, ysb33r [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I see from the Asciidoctor docs that [dedication] is attached to a level 0 section. Does this mean a dedication is only allowed for doctype=book?

Is there any special rules that asciidoctor-core applies to a [dedication] ?


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Dedications-tp3313.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: Dedications

ysb33r
mojavelinux wrote
https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/converter/html5.rb#L297

I'd actually like to change this so that the parser fixes the section level
rather than the converter.
That would be good.
Reply | Threaded
Open this post in threaded view
|

Re: Dedications

mojavelinux
Administrator
...and an issue already exists for it too.


-Dan

On Fri, Jun 5, 2015 at 4:24 PM, ysb33r [via Asciidoctor :: Discussion] <[hidden email]> wrote:
mojavelinux wrote
https://github.com/asciidoctor/asciidoctor/blob/master/lib/asciidoctor/converter/html5.rb#L297

I'd actually like to change this so that the parser fixes the section level
rather than the converter.
That would be good.


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



--