Make "glossify-exclude" class detection more robust

Created on 5 February 2025, 2 months ago

Problem/Motivation

Since #3021490: Stop the automatic linking of Glossary Items so that user can fix instances where the system gets it wrong it is possible to add a "glossify-exclude" class on text that should not be processed by glossify.
However, it has some limitations:

  • It looks specifically for a span, but we sometimes want to exclude HTML that can not be contained in a span.
  • If the span has both the glossify-exclude class and another class, it is not detected. The xpath query looks for exactly class="glossify-exclude".

Steps to reproduce

Try to exclude this HTML:

<div class="glossify-exclude foo">
Foo
</div>

Proposed resolution

The xpath query should look for any tag that has the glossify-exclude class.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇫🇷France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024