import {svg} from '../svg.ts'; // Rendered content from users have IDs prefixed with `user-content-` to avoid conflicts with other IDs on the page. // - security concern: elements with IDs can affect frontend logic, for example: sending requests. // To make end users have better experience, the prefixes are stripped from the href attributes of links. // The same as GitHub: backend generates anchor `id="user-content-faq"` but the link shown to users is `href="#faq"`. // // At the moment, the anchor processing works like this: // - backend adds `user-content-` prefix for elements like `