Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing section numbering when disabled and re-enabled #1039

Closed
xcoulon opened this issue Jun 11, 2022 · 0 comments · Fixed by #1040
Closed

Missing section numbering when disabled and re-enabled #1039

xcoulon opened this issue Jun 11, 2022 · 0 comments · Fixed by #1040
Assignees
Milestone

Comments

@xcoulon
Copy link
Member

xcoulon commented Jun 11, 2022

For example:

= A title
:sectnums!:

== Disclaimer

:sectnums:

== Section A

currently renders as

<div class="sect1">
<h2 id="_disclaimer">Disclaimer</h2>
<div class="sectionbody">
</div>
</div>
<div class="sect1">
<h2 id="_section_a">Section A</h2>
<div class="sectionbody">
</div>
</div>

instead of

<div class="sect1">
<h2 id="_disclaimer">Disclaimer</h2>
<div class="sectionbody">
</div>
</div>
<div class="sect1">
<h2 id="_section_a">1. Section A</h2>
<div class="sectionbody">
</div>
</div>
@xcoulon xcoulon added this to the v0.8.0 milestone Jun 11, 2022
@xcoulon xcoulon self-assigned this Jun 11, 2022
xcoulon added a commit to xcoulon/libasciidoc that referenced this issue Jun 11, 2022
also, moved logix to traverse the document in 'pkg/types'

Fixes bytesparadise#1039

Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
xcoulon added a commit that referenced this issue Jun 11, 2022
also, moved logix to traverse the document in 'pkg/types'

Fixes #1039

Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant