roam

package
v1.801.464 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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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