Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlocksToMarkdown ¶
BlocksToMarkdown converts a sequence of blocks back to markdown.
func MarkdownToRecordPost ¶
func MarkdownToRecordPost(markdown, fallbackTitle string) blogai.RecordPost
MarkdownToRecordPost converts markdown content into a blogai.RecordPost structure that mirrors the block-based editor expectations (introduction, sections, conclusion). fallbackTitle is used when the markdown content does not contain a level-1 heading.
func RecordPostToMarkdown ¶
func RecordPostToMarkdown(record blogai.RecordPost) string
RecordPostToMarkdown converts a RecordPost back to markdown text.
Types ¶
type Block ¶
func MarkdownToBlocks ¶
MarkdownToBlocks converts markdown into a flat list of sequential blocks. It preserves order and does not attempt to infer introduction/conclusion.
type UiInterface ¶
type UiInterface interface {
shared.UiInterface
AiPostContentUpdate(w http.ResponseWriter, r *http.Request)
}
UiInterface defines the ai post content update controller's UI interface
func UI ¶
func UI(config shared.UiConfig) UiInterface
UI creates a new ai post content update controller UI from the given config