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

Newline at the top of the content #252

Open
starise opened this issue Sep 1, 2024 · 2 comments
Open

Newline at the top of the content #252

starise opened this issue Sep 1, 2024 · 2 comments

Comments

@starise
Copy link

starise commented Sep 1, 2024

I've found that when importing bookmarks, before the content (after the front matter) there's always a newline at the top. I've solved this annoyance changing the \n\n to \n from template.ts. I'm not sure why the double newline is there.

return `${frontMatterStr}\n\n${contentWithoutFrontMatter}`

@SuzanaK
Copy link

SuzanaK commented Oct 9, 2024

Oh it's in the plugin, I thought it was somewhere in my template, it was driving me crazy!
But if I change it in the template.ts file it will be overwritten with the next plugin update, right?

@starise
Copy link
Author

starise commented Oct 9, 2024

if I change it in the template.ts file it will be overwritten with the next plugin update, right?

Right. I can send a pull request but I was waiting for a feedback that it was not intentional.

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