Documentation
¶
Index ¶
- func ConvertMarkdownHeader(line string) string
- func ConvertMarkdownTask(line string) string
- func ConvertOrgHeader(line string) string
- func ConvertOrgLink(link string, idMap map[string]string) string
- func ConvertOrgTask(line string) string
- func ConvertWikilink(link string, idMap map[string]string) string
- func ExtractOrgProperties(content string) (frontMatter string, bodyContent string)
- func ExtractYAMLFrontMatter(content string) (properties string, bodyContent string)
- func GenerateOrgID() string
- func HybridMarkdownToOrg(mdContent string, idMap map[string]string) (string, error)
- func HybridOrgToMarkdown(orgContent string, idMap map[string]string) (string, error)
- func MarkdownToOrg(mdContent string, idMap map[string]string) (string, error)
- func OrgToMarkdown(orgContent string, idMap map[string]string) (string, error)
- type FeatureMarker
- type HybridConverter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMarkdownHeader ¶
ConvertMarkdownHeader converts markdown header to org-mode # Header → * Header ## Subheading → ** Subheading
func ConvertMarkdownTask ¶
ConvertMarkdownTask converts markdown checkbox to org-mode task - [ ] Task → * TODO Task - [x] Task → * DONE Task
func ConvertOrgHeader ¶
ConvertOrgHeader converts org-mode header to markdown * Header → # Header ** Subheading → ## Subheading
func ConvertOrgLink ¶
ConvertOrgLink converts org-roam link to Obsidian wikilink [[id:uuid][Description]] → [[filename|Description]] [[id:uuid]] → [[filename]]
func ConvertOrgTask ¶
ConvertOrgTask converts org-mode task to markdown checkbox * TODO Task → - [ ] Task * DONE Task → - [x] Task
func ConvertWikilink ¶
ConvertWikilink converts Obsidian wikilink to org-roam link [[filename|Description]] → [[id:uuid][Description]] [[filename]] → [[id:uuid]]
func ExtractOrgProperties ¶
ExtractOrgProperties extracts properties drawer and converts to YAML front matter
func ExtractYAMLFrontMatter ¶
ExtractYAMLFrontMatter extracts YAML front matter and converts to properties drawer
func GenerateOrgID ¶
func GenerateOrgID() string
GenerateOrgID generates a new org-mode ID (UUID v4)
func HybridMarkdownToOrg ¶
HybridMarkdownToOrg converts markdown to org-mode using hybrid annotation pattern
func HybridOrgToMarkdown ¶
HybridOrgToMarkdown converts org-mode to markdown using hybrid annotation pattern
func MarkdownToOrg ¶
MarkdownToOrg converts markdown content to org-mode
Types ¶
type FeatureMarker ¶
type FeatureMarker struct {
MarkerID string // Unique placeholder: "NOTEBR_MARKER_abc123"
Feature string // Feature type: "org-roam-id", "task-scheduled", etc.
Original string // Original syntax
Convert func() string // Conversion function
Context map[string]string // Additional context data
}
FeatureMarker represents a custom feature that needs special handling
type HybridConverter ¶
type HybridConverter struct {
// contains filtered or unexported fields
}
HybridConverter handles conversion using the hybrid annotation pattern
func NewHybridConverter ¶
func NewHybridConverter(idMap map[string]string) *HybridConverter
NewHybridConverter creates a new hybrid converter