svandragt / lamb

Literally Another Micro Blog
https://github.com/svandragt/lamb/wiki
MIT License
6 stars 0 forks source link

Search missing for content starting with a hashtag #68

Open svandragt opened 3 months ago

svandragt commented 3 months ago

TIL entries for example might start with #til <the thing I learned>.

However, this makes it not show up in the search.

Assumption: The search query probably starts with a space to avoid picking up markdown headings.

Potential solutions:

  1. so one thing we could do is save all posts prefixed with an invisible space.
  2. markdown headings should be a number of # followed by a space, whereas tags have no space after the hashtag.
svandragt commented 2 months ago

Testing indicates it's a parse_tags bug, not a markdown rendering bug

svandragt commented 1 month ago

Link to an example