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

Utf-8 caracter in page seems to break anchor #1070

Open
gsemet opened this issue Jan 9, 2025 · 3 comments
Open

Utf-8 caracter in page seems to break anchor #1070

gsemet opened this issue Jan 9, 2025 · 3 comments
Labels
bug Something that needs to be fixed

Comments

@gsemet
Copy link

gsemet commented Jan 9, 2025

Hello . I use confluencebuilder with MyST and I have some fancy utf-8 characters in my document title, such as:

overview.md:

# 🌐 Overview
...

## 🧩 Features

...

On HTML rendering, no pbl, the link set in the mini-Toc
image

are correctly set to

overview.html#features

But on the confluence builder, the ToC have this link

... pageId=612020492#🌐Overview-🧩Features

In the HTML page the anchor looks like

<h2 id="🌐Overview-1.1.🧩Features">1.1. <a href="#Agpkg0.x1.🌐Overview-id2">🧩 Features</a></h2>

Not sure if this comes from the weird utf-8 characters, but this anchor does not work.

Their is a "1.1" number in the anchor that does not appear in the Toc

The toc is created by:

:::{only} confluence
```{contents} Table of Contents
  :depth: 3

:::


Any idea?
@jdknight jdknight added the bug Something that needs to be fixed label Jan 18, 2025
@jdknight
Copy link
Member

Appears to be a limitation in the extension. Performed a quick test and observed some UTF-8 character-enabled references working but some not. Will need to do some additional testing to see how Confluence prepares some section identifiers and verify/correct as needed.

Questions, if possible:

  • Was this observed in Confluence Cloud or Data Center?
  • Using the v1 or v2 editor?

@gsemet
Copy link
Author

gsemet commented Jan 18, 2025

confluence in on premise, should be v2.

@jdknight
Copy link
Member

If using an on-premise solution (Confluence Data Center), note that the "v2" editor is only supported in Confluence Cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that needs to be fixed
Projects
None yet
Development

No branches or pull requests

3 participants
@gsemet @jdknight and others