import * as anchor from "anchor-markdown-header" ; export function targetURL ( targetName ) { const link = anchor ( targetName , "github.com" ) as string ; return link . substring ( link . indexOf ( "#" ) + 1 , link . indexOf ( ")" ) ) ; }