asciidoctor-multipage icon indicating copy to clipboard operation
asciidoctor-multipage copied to clipboard

The tags which are in the section title are escaped

Open diguage opened this issue 3 years ago • 1 comments
trafficstars

The example:

= Example Manual^Alpha^
Doc Writer <[email protected]>
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>

diguage avatar Jun 15 '22 07:06 diguage

@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 avatar Jun 15 '22 23:06 owenh000