You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
MRG Entries may have a field headingids that contains the list of header items that are in the Curated Text that the MRG Entry documents. Examples are: # TEv2 Curated Text Header or ### Summary.
The idea was/is that these texts could be used as fragment identifiers, by appending #<headeridelement> to the navurl. So rather than ### Summary, I would like to see summary.
This issue calls for a conversion of the elements in headingids such that they become useful as fragment identifiers.
This means:
Look for a custom heading ID at the end of the header text (something like {#my-heading-id}, i.e., a match with regex \{\s*#([^\s]+)\s*\}.
If found, use the my-heading-id part, i.e.: the capturing group in the regex, as the value for the heading-id field)
If not found, do the following
Strip the leading #-characters and spaces.
Convert the text to lower-case.
Replace any sequence of one or more characters that are not in the range [a..z] with a single -character.
use the result as the value for the heading-id field.
The text was updated successfully, but these errors were encountered:
MRG Entries may have a field
headingids
that contains the list of header items that are in the Curated Text that the MRG Entry documents. Examples are:# TEv2 Curated Text Header
or### Summary
.The idea was/is that these texts could be used as fragment identifiers, by appending
#<headeridelement>
to thenavurl
. So rather than### Summary
, I would like to seesummary
.This issue calls for a conversion of the elements in
headingids
such that they become useful as fragment identifiers.This means:
{#my-heading-id}
, i.e., a match with regex\{\s*#([^\s]+)\s*\}
.my-heading-id
part, i.e.: the capturing group in the regex, as the value for the heading-id field)[a..z]
with a single-
character.The text was updated successfully, but these errors were encountered: