Add option to keep existing IDs

Created on 6 February 2024, 5 months ago
Updated 26 June 2024, 1 day ago

Problem/Motivation

This filter works well to set IDs on headings, but when a heading in content already has an ID on it, the existing ID is replaced with a new automatically generated one, which is not always desirable.

EG, we'd like to be able to let users set their own IDs, or migrate in content that already uses IDs, and keep the existing ID values in place.

Steps to reproduce

Set up a filter format that uses the filter provided by this module. Add a heading with an ID in content, with an ID that doesn't match the heading text. The existing ID will be changed to match the heading text.

Proposed resolution

Add an option to preserve existing IDs to the filter.

Remaining tasks

None

User interface changes

New settings form in the filter.

API changes

None

Data model changes

None

✨ Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom rupertj Bristol, UK

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024