Dendron Pub
Summary
Responsible for multiple transformations of Dendron's Markdown AST. Examples:
- generating note references (Private)
- handling private links when publishing
- insertTitle
Lifecycle
insertTitle
This turns the title
property in the frontmatter into a h1
header
_.findIndex(root.children, ent.type != yaml)
root.children.splice(
HEADING, note.title
)
Convert wikilinks for publishing
transformer {
visit(node) {
if(node.type === WIKI_LINK) {
...
isPublished := SiteUtils.isPublished
if !isPublished value = _.toString(StatusCodes.FORBIDDEN)
}
}
}
Tests
Backlinks