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

Nested deftech fails to generate a link in Search Manual #423

Open
NoahStoryM opened this issue Apr 30, 2024 · 1 comment
Open

Nested deftech fails to generate a link in Search Manual #423

NoahStoryM opened this issue Apr 30, 2024 · 1 comment

Comments

@NoahStoryM
Copy link
Contributor

What version of Racket are you using?
8.12 [cs]

What program did you run?
Here is a snippet of my .scrbl file that seems to cause the issue:

@subsection{Commutative Diagram}

Informally, a @deftech{diagram} comprises various @tech{objects} connected by
various @tech{morphisms}. When the @tech{morphisms} with the same @tech{domain}
and @tech{codomain} are the same one, the @tech{diagram} is a
@deftech{@deftech{commutative} diagram}.

@tech{Commutative diagrams} serve as a powerful language for expressing equations.

@subsubsection{Commutative Triangle}

A @deftech{commutative triangle} is a @tech{commutative diagram} that has the shape
of a triangle.

What should have happened?
The nested use of deftech should generate correct links in both the .html file and the Search Manual for all defined technical terms. Specifically, the term "commutative diagram" should be properly linked in the Search Manual like "commutative triangle".

If you got an error message, please include it here.
No error message was displayed, but the expected link creation in the Search Manual was not observed for the nested deftech tags.

Please include any other relevant details

In .html:
html

In Search Manual:
search-manual

@NoahStoryM
Copy link
Contributor Author

Below is the link-element generated from the expression @deftech{is a @deftech{test} here.}:

(link-element "indexlink"
              (list (element 'italic
                      (list "is a "
                            (index-element #f
                                           (target-element #f
                                                           (element 'italic "test")
                                                           '(tech "test"))
                                           '(tech "test")
                                           '("test")
                                           (list (element 'italic "test"))
                                           'tech)
                            " here."))
                    (element 'newline '("\n")))
              '(tech "is a test here."))

The result is as shown in the attached screenshot. Only the part "is a " (the first element of the list) is rendered correctly.

Screenshot_2024-05-09_23-39-10

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

No branches or pull requests

1 participant