Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser #45

Open
ethanleifer opened this issue Dec 29, 2023 · 7 comments
Open

Parser #45

ethanleifer opened this issue Dec 29, 2023 · 7 comments

Comments

@ethanleifer
Copy link

ethanleifer commented Dec 29, 2023

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
Copy link
Owner

kgar commented Dec 29, 2023

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

@ethanleifer
Copy link
Author

How do you use it?

@kgar
Copy link
Owner

kgar commented Dec 29, 2023

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
Copy link
Owner

kgar commented Dec 29, 2023

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

@ethanleifer
Copy link
Author

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

@kgar
Copy link
Owner

kgar commented Dec 30, 2023

That sounds awesome!

@weeebdev
Copy link

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

Did you do it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants