Markdown
Description
Markdown files are processed as journal entries, preserving their original formatting while extracting timestamps for chronological organization and coordinate correlation.
File Extensions
Files identified with the markdown tag by the identify library, typically:
- .md
- .markdown
- .mdown
Processing Details
Time Extraction
- Filename Parsing (Primary): Extracts numeric sequences from filename (e.g.,
note_20200103_085834.md→ 2020-01-03 08:58:34) - File Modification Time (Fallback): Uses the file's
mtimewhen filename parsing fails
!!! note "Future Enhancement" Front-matter timestamp parsing is planned but not yet implemented. Currently, time extraction relies on filename patterns and file modification time.
Coordinate Extraction
Time-Based Correlation Only: Markdown files rely entirely on time correlation with GPS tracks. The system matches the markdown file timestamp with the nearest GPS track point within the configured time window.
Markdown Processing
- Direct Copy: Markdown files are copied as-is to the build directory
- Unique Naming: Duplicate filenames are handled with automatic counter suffixes
- Format Preservation: All original markdown formatting, links, and structure are maintained
- Asset Integration: Files become part of the journal entry system
Configuration
features:
geo_correlation: # For coordinate correlation
enabled: true
time_offset: !duration 0 seconds # Markdown creation time offset
max_time_diff: !duration 300 seconds # Max correlation window
Tips for Best Results
- Naming Convention: Use timestamp-based filenames for accurate time extraction
- Time Synchronization: Keep markdown creation time synced with GPS device time
- Content Organization: Use standard markdown formatting for consistent display
- GPS Logging: Maintain GPS tracks when creating markdown notes for location data
Future Enhancements
- Front-matter Support: Planned support for extracting timestamps from YAML front-matter
- Metadata Extraction: Additional metadata parsing from front-matter headers
Output
- Journal Entries: Rendered markdown content in chronological journal pages
- Preserved Formatting: All markdown syntax rendered properly in the final output
- Location Data: Coordinates from GPS correlation (when available)
- Searchable Content: Markdown content becomes part of searchable journal