MCPcopy Create free account
hub / github.com/hackmdio/codimd / autoLinkify

Function autoLinkify

public/js/extra.js:1093–1101  ·  view source on GitHub ↗
(view)

Source from the content-addressed store, hash-verified

1091}
1092
1093export function autoLinkify (view) {
1094 const contentBlock = view[0]
1095 if (!contentBlock) {
1096 return
1097 }
1098 for (let level = 1; level <= 6; level++) {
1099 linkifyAnchors(level, contentBlock)
1100 }
1101}
1102
1103function getHeaderContent (header) {
1104 const headerHTML = $(header).clone()

Callers 2

pretty.jsFile · 0.90
updateViewInnerFunction · 0.90

Calls 1

linkifyAnchorsFunction · 0.85

Tested by

no test coverage detected