Skip to content

:LOGBOOK: parsing can't cope with markdown lists #768

@pdcawley

Description

@pdcawley

I'm trying to use the :LOGBOOK: drawer as a Changelog for blog posts, but org-hugo--parse-logbook-entry is throwing "No time stamp is recorded in the LOGBOOK drawer entry" with an entry like this:

* DONE Article title
CLOSED: [2025-09-20 Sat 12:00]
:PROPERTIES:
:EXPORT_FILE_NAME: article-title
:END:
:LOGBOOK:
- Note taken on [2025-09-20 Sat 12:28] \\
  - Restored lost data from the Wayback Machine
  - Added a margin note
- State "DONE"       from "REVISING"   [2025-09-20 Sat 12:02]
- State "REVISING"   from "DONE"       [2025-09-20 Sat 11:30]
- State "DONE"       from "TODO"       [2003-08-01 Fri 11:46]
:END:
...

A cursory glance at the implementation of org-hugo--parse-logbook-entry seems to imply that it's breaking the top level list item down into paragraphs for some reason.

Also, the original format of the drawer, using the default value of org-log-note-headings and a file header including:

#+startup: lognotedone
#+seq_todo: TODO(t) REVISING(r!) | DONE(D@) CANCELLED(x@)

leaves a logbook drawer looking like:

:LOGBOOK:
- State "DONE"       from "REVISING"   [2025-09-20 Sat 12:02] \\
Some note I'd expect to be picked up
:END:

But instead of frontmatter like this:

title = "Article Title"
author = ["Piers Cawley"]
date = 2003-08-01T11:46:00+01:00
lastmod = 2025-09-20T12:28:00+01:00
draft = false
[logbook]
  [logbook._toplevel]
    [[logbook._toplevel.notes]]
      timestamp = 2025-09-20T12:02:00+01:00
      note = "Some note I'd expect to be picked up"

there's no [logbook] entry at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions