package
0.0.0-20241125133701-bbf0d794c304
Repository: https://github.com/sourcegraph/notionreposync.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

IsDangerousURL returns true if the given url seems a potentially dangerous url, otherwise false.
NewNodeRenderer returns a new NodeRenderer that ingests Markdown and applies converted Notion blocks to BlockUpdater.
No description provided by the author
WithLinkResolver configures a LinkResolver to use.

# Constants

MaxBlocksPerUpdate is the maximum number of blocks that can be added in a single request.
MaxNestedBlockLevelsPerUpdate is the maximum number of nesting levels that can be added in a single request.
MaxRichTextContentLength is the maximum length of a single rich text content object.

# Variables

No description provided by the author

# Structs

DiscardLinkResolver discards all links, using ErrDiscardLink to indicate all links should be rendered as plain text.

# Interfaces

BlockUpdater implements the desired handling for Notion blocks converted from Markdown.
LinkResolver can be implemented to modify Markdown links.
Option applies configuration of the renderer.