Parsing Block Syntax

Tasks

  • parsing block links
    • Revised existing link parsing code to recognize block links. We can now parse links like [[note#^block-id]] and [[#^block-id]]. As an extra benefit, we also now allow links like [[#header]] for linking to headers within the same file.
  • parsing block anchors
  • parsing block reference link
  • see Block Links
  • create a new remark plugin (eg. dendronBlockLink.ts)
    • example of existing plugin engine-server/src/markdown/remark/wikiLinks.ts
  • create a parsing function that can identify a block link
  • write tests (see engine-test-utils/src/__tests__/engine-server/markdown/noteRefv2.spec.ts as reference)

Parsing block anchors

  • see Block Anchor
  • create a new remark plugin (eg. dendronBlockAnchor.ts)
  • create a parsing function
  • write tests
  • see Block Reference Link
  • add this to dendronBlockLink
  • add an attribute to recognize if a block link is a regular link or a reference link
  • write test

Backlinks