boostorg / boostorg/website-v2-docs

Code block font renders -> as → ligature Problem

Open
#589 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
14
Forks
60
Avg merge
12h 47m
Merged PRs (30d)
14

Description

### Problem

In code blocks, the arrow operator `->` is being replaced by a single `→` character. This is a font ligature that shouldn't apply to code blocks in documentation, as it misrepresents the actual C++ syntax.

### Example

See: https://develop.capy.cpp.al/capy/reference/boost/capy/strand-05.html

The member access arrow `->` displays as `→` instead of the literal two-character sequence.

### Expected behavior

Code blocks should display `->` as two distinct characters (`-` and `>`), not as a ligature.

### Likely cause

The code block font has ligatures enabled. Fix options:
1. Add `font-feature-settings: "liga" 0, "calt" 0;` to code block CSS
2. Use a font variant without ligatures
3. Set `font-variant-ligatures: none;` on code elements

### Reported by

Gennaro Prota

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.