kgar / ts-markdown

An extensible TypeScript markdown generator that takes JSON and creates a markdown document
https://kgar.github.io/ts-markdown/
MIT License
9 stars 4 forks source link

Parser #45

Open ethanleifer opened 7 months ago

ethanleifer commented 7 months ago

Hi,

This library looks super interesting and I am thinking of using it to store information in my obsidian vault.

I am looking for a way to programmatically add information into an already existing Markdown document.

Has anyone built a compatible parser that converts existing markdown into this json structure?

kgar commented 7 months ago

I have not heard of anyone making a parser for this library yet. It sounds really useful, though.

ethanleifer commented 7 months ago

How do you use it?

kgar commented 7 months ago

It is currently best used as a support library within a node JS program, pulling it in as a package from a package source like NPM. It has support for TypeScript in case you use that. Though, I have seen some people use it to generate documentation through github.

In the past, I was working on a web scraping project where I would read content with browser automation like Google puppeteer and then turn that into data, and then I would feed the data into this library to make markdown, either to write to files or to append to files.

I eventually finished the project, and now I keep this repo around for the people who use it.

kgar commented 7 months ago

I maintain a playground with a cookbook that shows examples: https://kgar.github.io/ts-markdown/pages/cookbook.html

ethanleifer commented 7 months ago

Thanks! I am probably going to fork to create a parser!

kgar commented 7 months ago

That sounds awesome!

weeebdev commented 3 weeks ago

Thanks! I am probably going to fork to create a parser!

Did you do it?