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

Improve markdown export #28

Open
9 tasks
alexkolson opened this issue Apr 13, 2023 · 4 comments
Open
9 tasks

Improve markdown export #28

alexkolson opened this issue Apr 13, 2023 · 4 comments

Comments

@alexkolson alexkolson changed the title Markdown export improvements Improve markdown export Apr 13, 2023
@exislow
Copy link

exislow commented Apr 17, 2023

Thanks a lot for the first version of the markdown exporter. I would like to extend the list above regarding the following points:

  1. Extracted media is not linked into the markdown file (at least webp files not). Especially with textbundle support the media resides in the same directory as the *.md file. Thus, it is very easy to just link the pictures using Markdown syntax.
  2. All my titles are getting duplicated and linked, which is super weird, see

Original:
Screenshot 2023-04-17 um 16 44 35

Exported:
Screenshot 2023-04-17 um 16 44 50

  1. Bullet points are getting ignored. Please export them with *.
  2. Also numbered listings getting ignored. Please export them using 1., 2. etc.
  3. It would be great if you could just support the standard GitHub Flavored Markdown Spec.
  4. Please create a file tree according to the side bar structure in the notes app, where all the extracted markdown files are accordingly.

But all in all it seems to be a solid foundation. Really nice job. Thanks a lot. I appreciate your effort.

@alexkolson
Copy link
Contributor Author

Hey thank you for the feedback! I have created issues for all of your listed points so I don't forget.

@exislow
Copy link

exislow commented Jun 12, 2023

I have another request: Is it possible to have an option, which disables the prefixed "#" on titles. My titles are already prefixed with an "#" which results in 2 consecutive "#". Thanks

@alexkolson
Copy link
Contributor Author

alexkolson commented Jun 12, 2023

I have another request: Is it possible to have an option, which disables the prefixed "#" on titles. My titles are already prefixed with an "#" which results in 2 consecutive "#". Thanks

Sure no problem! -> #46

Regarding #36 (duplicated titles):

I've started taking a look at this issue.

Notes.app takes the first line of any note and saves it in a special title column of the note record in the database. Right now I am using this column of the note record to populate the "header" of the markdown note. The problem is of course that the first line of the note appears again in the note text itself, which is why the duplicate title issue is arising. Why they are linked in your case I am not sure. I can't seem to duplicate the linking issue, but I 100% believe you that it is happening. I will continue to try and create a test note that reproduces this so I can fix it. My current plan of attack for the plain duplicated titles is to de-dupe the title by removing the first occurrence of the title column of the note record from the note text while converting it to markdown.

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

2 participants