normalize

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package normalize ensures section headings and other user input have the correct Markdown format before insertion.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TargetSection

func TargetSection(section string) string

TargetSection ensures a section heading has proper Markdown format.

Prepends "## " if the section string does not already start with "##". Callers must not pass an empty string; the empty case is handled by InsertTask before this function is reached.

Parameters:

  • section: Raw section name from user input (non-empty)

Returns:

  • string: Normalized section heading (e.g., "## Phase 1")

Types

This section is empty.

Jump to

Keyboard shortcuts

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