freeCodeCamp / publish

> Content backend platform for /news
https://publish.freecodecamp.org
BSD 3-Clause "New" or "Revised" License
10 stars 9 forks source link

Automatically add id to heading element based on its text #400

Closed sidemt closed 4 months ago

sidemt commented 5 months ago

Based on feedback from Anastasiia:

Add the functionality to automatically generate and add ID to a heading element like this: image

It is used to create table of contents of the article.

Note: This automatic conversion is not likely to work well for languages that don't use English alphabet letters, such as Ukrainian or Japanese. As a workaround for those languages, we will need a way to insert custom HTML tags. -> #401