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

Index terms are not supported #636

Open
benoitrolland opened this issue Mar 12, 2022 · 3 comments
Open

Index terms are not supported #636

benoitrolland opened this issue Mar 12, 2022 · 3 comments

Comments

@benoitrolland
Copy link

benoitrolland commented Mar 12, 2022

asciidoc Index terms
(((level1,level2,level3)))term
are lost in the html preview.

Marking it using a class attribute on a surrounding div per level
or any other technical way,
would be a first step, next allowing to reference that terms
and/or to build an index

@ggrossetie
Copy link
Owner

We currently (mostly) rely on the built-in HTML5 converter and as mentioned in the documentation:

The built-in HTML5 converter in Asciidoctor does not generate an index.

We should probably check how this feature is implemented in Asciidoctor PDF and try to reproduce it.

@ggrossetie ggrossetie changed the title Index terms are lost in html preview, marking it would be a first step to build an index Index terms are not supported Mar 13, 2022
@benoitrolland
Copy link
Author

benoitrolland commented Mar 15, 2022

What about using a2x -f xhtml instead of asciidoctor for the adoc to html conversion step ?

@ggrossetie
Copy link
Owner

a2x (AsciiDoc.py) is a legacy AsciiDoc processor written in Python.
There are at least two reasons why we are not using a2x:

  • We don't want to rely on a legacy processor
  • We don't want to call a Python program from a Node application

Asciidoctor.js provides a modern and substantially faster implementation in JavaScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants