logseq / logseq

A privacy-first, open-source platform for knowledge management and collaboration. Download link: http://github.com/logseq/logseq/releases. roadmap: http://trello.com/b/8txSM12G/roadmap
https://logseq.com
GNU Affero General Public License v3.0
30.07k stars 1.76k forks source link

Timestamps with the format <yyyy-mm-dd> (without day of the week) are not recognized but <yyyy-mm-dd ddd> are [org-mode] #11288

Open kauesena opened 2 weeks ago

kauesena commented 2 weeks ago

Search first

What Happened?

I went to edit my custom.css file to add some highlighting to timestamps and noticed that <yyyy-mm-dd ddd> (e.g. <2025-01-01 Wed>) got properly coloured while <yyyy-mm-dd> did not. Using the inspection tool I noticed that only the first timestamp format resulted in a span.timestamp element.

Reproduce the Bug

  1. Append a timestamp such as <2025-01-01> to a heading;
  2. Add a timestamp such as <2025-01-01 Wed> to another heading;
  3. Use the inspection tool to notice that only the second is parsed as span.timestamp..

Expected Behavior

Both formats to generate span.timestamp since they are both proper org-mode syntax, and have essentially the same information.

Screenshots

No response

Desktop or Mobile Platform Information

No response

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.