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

The tags which are in the section title are escaped #36

Open
diguage opened this issue Jun 15, 2022 · 1 comment
Open

The tags which are in the section title are escaped #36

diguage opened this issue Jun 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@diguage
Copy link

diguage commented Jun 15, 2022

The example:

= Example Manual^Alpha^
Doc Writer <doc.writer@example.org>
2014-09-09
:icons: font
:source-highlighter: rouge
:rouge-style: monokai
:stylesdir: assets/styles/
:linkcss:

This is a user manual for an example project.

[#introduction]
== Introduction

This project does something.
We just haven't decided what that is yet.

[#source-code]
== Source `Code` Example

[source,java]
.Java code from project
----
package com.diguage;

/**
 * @author D瓜哥 · https://www.diguage.com/
 */
public class Main {
    public static void main(String[] args)
        System.out.println("Hello, world");
    }
}
----

This page was built by the following command:

 $ mvn

The command:

$ asciidoctor-multipage -v
Asciidoctor Multipage 0.0.16 using Asciidoctor 2.0.17 [https://asciidoctor.org]
Runtime Environment (ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin19]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)

$ asciidoctor -r asciidoctor-multipage -b multipage_html5 -D . -a toc=left index.adoc

image

The generated HTML:

<p>↑ Up: <a href="a.html">Example Manual&lt;sup&gt;Alpha&lt;/sup</a>&gt; | Next: <a href="source-code.html">Source &lt;code&gt;Code&lt;/code&gt; Example</a> →</p>
@owenh000
Copy link
Owner

@diguage, I see the same behavior. Thanks for the report!

(In my opinion, special formatting inside headings is seldom a good style choice. But that's irrelevant.)

@owenh000 owenh000 added the bug Something isn't working label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants