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

bodyBegin behaves unexpectedly #94

Open
irasanchez opened this issue Sep 25, 2023 · 0 comments
Open

bodyBegin behaves unexpectedly #94

irasanchez opened this issue Sep 25, 2023 · 0 comments

Comments

@irasanchez
Copy link

irasanchez commented Sep 25, 2023

Hey there, I am using this to find the space between the front matter and markdown content so that I can insert an image after the front matter and before everything else.

The bodyBegin attribute seemed to be exactly what I was looking for, but it doesn't behave like I thought it would.

In documents with front matter and a heading (h1, h2, etc.), the bodyBegin line is the line after the heading. I thought that was an intentional choice until I tried without a heading. The bodyBegin line is then the line after the first paragraph of content.

For now, I am just subtracting the amount needed each time (1 or 2 lines). Is this how it's intended to be used though?

This attribute is really useful and hard to find in similar libraries. Yours was the only one I could find. Any help is much appreciated, thanks!

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

1 participant