You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rdhyee and I are building ebooks from asciidoc sources. HTMLBook spec says to use <ol> but the default outline function outputs <ul>. @rdhyee patched this by overriding the outline ruby method.
In this issue from asciidoctor@mojavelinux suggests a better way of calling outline and shows how the <ul> behavior of asciidoc can be overridden.
The text was updated successfully, but these errors were encountered:
To be more specific, outline can be overridden just like any block using a
template. There's no need to patch Asciidoctor to accomplish this
customization (and best to stick with the template approach).
The patch was totally a hey-lets-hack-this-right-now solution.
To clarify, this wasn't possible before 1.5.0, so at the time it was probably the only way. I recognized this issue when working on 1.5.0 and rectified it so simplify cases just like this.
@rdhyee and I are building ebooks from asciidoc sources. HTMLBook spec says to use
<ol>
but the default outline function outputs<ul>
. @rdhyee patched this by overriding theoutline
ruby method.In this issue from asciidoctor @mojavelinux suggests a better way of calling
outline
and shows how the<ul>
behavior of asciidoc can be overridden.The text was updated successfully, but these errors were encountered: