welpo / tabi

A modern Zola theme with search, multilingual support, optional JavaScript, a perfect Lighthouse score, and a focus on accessibility.
https://welpo.github.io/tabi/
MIT License
112 stars 36 forks source link

Header anchor in Arabic text is not working #269

Closed TheAwiteb closed 7 months ago

TheAwiteb commented 7 months ago

Bug Report

Environment

tabi version or commit: e3734829460d4f93643e7d8fc4a33670f5bb9c6e

Description

There is a bug in the header anchor in Arabic text.

Steps to reproduce

  1. Hover over the header anchor in the Arabic text.

https://github.com/welpo/tabi/assets/59842932/3b72382b-da7c-4c56-ac76-5b46a85285de

welpo commented 7 months ago

Did you try setting insert_anchor_links = "right" on the section?

You need to set it on the TOML of the section (i.e. _index.md).

Example on the docs. Adapted for the blog section (content/_index.md):

paginate_by = 5
path = "/blog"
title = "Blog"
sort_by = "date"
template = "section.html"
insert_anchor_links = "right"  # ✅ try this 
TheAwiteb commented 7 months ago

Did you try setting insert_anchor_links = "right" on the section?

I tried it a while ago, and it's set it in the left not right

image

TheAwiteb commented 7 months ago

This is the headers if you want to test something (Arabic ar)

# موضوع 1

## موضوع 2

### موضوع 3

#### موضوع 4

##### موضوع 5
welpo commented 7 months ago

I will look into it! Thanks.