• Jan Provaznik's avatar
    Use prefix for TableOfContents filter hrefs · 3e83d9f7
    Jan Provaznik authored
    TableOfContents filter generates hrefs for each header in markdown,
    if the header text consists from digits and redacted symbols only,
    e.g. "123" or "1.0 then the auto-generated href has the same format
    as issue references.
    
    If the generated id contains only digits, then 'anchor-' prefix is
    prepended to the id.
    
    Closes #38473
    3e83d9f7
table_of_contents_filter_spec.rb 4.3 KB