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

When using the convert feature, an extra newline is generated #1726

Closed
ong6 opened this issue Jan 18, 2022 · 3 comments · Fixed by #1746
Closed

When using the convert feature, an extra newline is generated #1726

ong6 opened this issue Jan 18, 2022 · 3 comments · Fixed by #1746

Comments

@ong6
Copy link
Contributor

ong6 commented Jan 18, 2022

Is your request related to a problem?

When using markbind init -convert the pages on site-nav do not generate properly.

Example:
image

This causes an issue when the user tries to serve the webpage as markbind cannot accurately determine the closing tags.

Example:
image

Describe the solution you'd like

Make it so that when generating the individual pages, there is no newline.

or

Somehow allow the closing tags to be parsed accurately.

@damithc
Copy link
Contributor

damithc commented Jan 18, 2022

IIRC, deep indentation causes markdown parsers to treat text as a code block. e.g.,
image

@ong6
Copy link
Contributor Author

ong6 commented Jan 18, 2022

IIRC, deep indentation causes markdown parsers to treat text as a code block. e.g., image

Yeah, not sure how to fix this other than to fix the newline part of it. I was looking into how to make markdown parsers ignore the empty spaces but it has not yielded any results yet.

But now with these 2 issues resolved, convert now works buttery smooth. No editing required.

@damithc
Copy link
Contributor

damithc commented Jan 19, 2022

I was looking into how to make markdown parsers ignore the empty spaces but it has not yielded any results yet.

When writing code manually, I use 2-spaces indentation instead of 4-spaces and omit indentations in some places altogether, due to this problem.

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