Documentation
¶
Overview ¶
Package adf inspects Atlassian Document Format (ADF) JSON without importing Jira types, so store, origin, and CLI can share it without crossing the store/jira firewall (docs/ARCHITECTURE.md).
PlainText flattens a document for FTS. IsSimple is the format-loss gate (doc / paragraph / text / hardBreak, no marks) ported from web/src/lib/adf.ts isSimpleAdf.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSimple ¶ added in v0.17.0
IsSimple is the Go port of web/src/lib/adf.ts isSimpleAdf: empty/null is simple; otherwise only doc/paragraph/text/hardBreak with no marks. A plain-text replace of a non-simple document would drop formatting, so callers refuse unless the user passed force.
func PlainText ¶
func PlainText(raw json.RawMessage) string
PlainText flattens an ADF document to plain text: it is what FTS indexes and what makes a repro-steps custom field searchable. A field that holds a bare string (the older wiki-markup shape) passes through unchanged.
Types ¶
This section is empty.