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

Question: how will I convert all this simple .md files to norg? #33

Open
2 tasks done
r3k2 opened this issue Nov 9, 2023 · 2 comments
Open
2 tasks done

Question: how will I convert all this simple .md files to norg? #33

r3k2 opened this issue Nov 9, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation how-to How should I do ...? question Further information is requested

Comments

@r3k2
Copy link

r3k2 commented Nov 9, 2023

Did you check docs and existing issues?

  • I have searched the existing issues.
  • I have searched the existing discussions.

Converter version (minorg --version)

latest

Operating System / Version

Arch GNU/Linux

Input File Type (Please add flavor if exists; obsidian markdown)

markdown

Describe the Bug

I will like to migrate to norg but I first need to move all this tree/files in simple .md (no tables, mostly no links etc ) I will add more feature when already in norg (is why I am migrating)

Example Input file

swappy-20231109-192640
Here is the files and tree

Expected / Wanted Output

I want to convert all this to norg

Pandoc command

No idea is why I am asking, I see no good example for this to be done thanks ( notice I did see some loop examples but not for .md files, maybe I missed it )

@pysan3
Copy link
Owner

pysan3 commented Nov 10, 2023

Hi, thanks for your interest @r3k2 !

Did you see the example to recursively convert files into norg files?
https://github.com/pysan3/minorg#recursive-directory-of-markdown

This should convert all foo/bar.md into foo/bar.md.norg. Is this not what you want?

You may want pandoc -f gfm -t json instead if you are using GitHub markdown flavor.

If you are not familiar with shell scripting, ask me anything you want and I can give you a more complicated one lol. Are u using bash or zsh btw?

@pysan3 pysan3 added documentation Improvements or additions to documentation question Further information is requested how-to How should I do ...? labels Nov 12, 2023
@pysan3
Copy link
Owner

pysan3 commented Nov 30, 2023

Hey, any updates @r3k2 ? ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation how-to How should I do ...? question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants