Publishing
Summary
Lifecycle
Initialization
The processor is called in when building site metadata
procRehypeParse {
@_procRemark
}
_procRemark {
config := ...
...
proc.use(dendronPub, {prefix: config.assetsPrefix})
}
dendronPub(opts) {
prefix := opts
href = prefix + value + maybeFileExtension
//
const href = SiteUtils.getSiteUrlPathForNote({
addPrefix: pOpts.flavor === ProcFlavor.PUBLISHING,
pathValue: value,
config,
pathAnchor: data.anchorHeader,
note,
});
}