src/anchorSlugger.js
function getMarkDownItAnchorId (text) {
  text = text
    .replace(/^[<]|[>]$/g, '') // correct markdown format bold/url
  text = entities.decode(text)
    .toLowerCase()
    .trim()
    .replace(/\s+/g, '-')
  return encodeURIComponent(text)
}
function getMarkDownItAnchorId (text) {
  text = text
    .replace(/^[<]|[>]$/g, '') // correct markdown format bold/url
  text = entities.decode(text)
    .toLowerCase()
    .trim()
    .replace(/\s+/g, '-')
  return encodeURIComponent(text)
}
function getMarkDownItAnchorId ( text ) { text = text . replace ( / ^[<]|[>]$ / g , '' ) // correct markdown format bold/url text = entities . decode ( text ) . toLowerCase ( ) . trim ( ) . replace ( / \s+ / g , '-' ) return encodeURIComponent ( text ) }
getMarkDownItAnchorId - anchors used with `npm i markdown-it-anchor`
@private
@see: https://github.com/valeriangalliat/markdown-it-anchor/blob/master/index.js#L1
If no repetition, or if the repetition is 0 then ignore. Otherwise append '_' and the number.
numbering starts at 2!
getMarkDownItAnchorId - anchors used with npm i markdown - it - anchor