datopian / markdowndb

JS library to turn markdown files into structured, queryable data. Build markdown-powered docs, blogs, sites and more quickly and reliably.
https://markdowndb.com
MIT License
197 stars 12 forks source link

Feature request: parser for tags that are not standards. #121

Open paul-hammant opened 1 month ago

paul-hammant commented 1 month ago

I have a set of markdown/Jekyll pages like so:

**Key Ingredients**: Potato, Leaks

**Type**: Main course side dish

**Amount**: 1/2 lb

I'm using markdown bolding cos it makes sense in my for-human rendering.

It would be great if I could add masks for the tag creation so that npx mddb <dirName> picked it up

The page set is generated on GitHub-Pages and each contains an [edit this page] link to make a quasi-wiki experience.

rufuspollock commented 1 month ago

@paul-hammant you can definitely do this with the computed fields feature: https://github.com/datopian/markdowndb?tab=readme-ov-file#step-1-define-the-computed-field-function

paul-hammant commented 1 month ago

Can I invoke via the command line - most of my toolchain is bash and python, or did I need to make a node project within, and invoke markdowndb via it's JS binding?