I'm not sure I understand your question. You say that there's no info about the level, but then you show that level is one of the keys in the options hash (i.e., :level => 5)
Based on the option values you showed, I infer you are talking about Asciidoctor PDF. You are correct that layout_heading does not accept a node, but rather the title. The number is at the start of the title (e.g., 1.1.1.1.1)
If you showed an example of the output you are trying to achieve, I can probably help you find the right method to override.
Best Regards,
-Dan
On Thu, Sep 17, 2020 at 8:36 AM ggenier [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Hello,
I want to change the chapter number by a letter for level 5.
I want to put an alpha on title "a", "b", "c"...
In Ruby I show opts : puts string, opts
In this display i don't see any information about the level, I have :
title1
{:align=>:left, :level=>5, :outdent=>true}
title2
{:align=>:left, :level=>5, :outdent=>true}
title3
{:align=>:left, :level=>5, :outdent=>true}
It's possible to retrieve the title number ?
Thanks in advance.
--