roam

package
v1.801.465 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package roam normalizes a Roam Research JSON export into vault.Page documents. It is pure (no cloud/framework/I/O). Roam pages are flat (top-level); each page is a tree of bullet blocks. This package flattens the block tree into an indented bullet list, preserving "[[wikilinks]]", "#tags", and "((block refs))" verbatim so the kb-page after_save hook extracts the links exactly as authored.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(data []byte) ([]vault.Page, error)

Parse decodes a Roam JSON export (a top-level array of pages) into pages. It also tolerates a single-object export. A page's body is its block tree rendered as an indented bullet list.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL