notetitle

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 3 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 notetitle reads the title of a note from its markdown, as Apple Notes does: nobody types it apart.

Index

Constants

View Source
const MaxLength = 50

MaxLength is the most runes a title keeps when it comes from the first words of the text.

Variables

This section is empty.

Functions

func From

func From(content string) string

From gives the first heading of content, else its first line of text cut to MaxLength runes; "" when there is neither: the note is untitled. Code blocks and lines of #tags only are skipped.

func Heading

func Heading(content string) string

Heading gives the first heading of content, "" without one.

func Headings

func Headings(content string) []string

Headings gives the headings of content, in order, as their words: those of fenced code and empty ones left out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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