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/Request: Is there an option to not indent already indented multiline text #107

Closed
devboy opened this issue Aug 15, 2024 · 3 comments · Fixed by #90
Closed

Question/Request: Is there an option to not indent already indented multiline text #107

devboy opened this issue Aug 15, 2024 · 3 comments · Fixed by #90

Comments

@devboy
Copy link

devboy commented Aug 15, 2024

I did not want to report this as a bug as it might not be one.

I use a markdown formatter which already indents multiline list items, then markview actually indents them even further resulting in the screenshots i posted.

Is there an option to handle this in the settings which I missed?

Screenshot 2024-08-15 at 18 32 21
Screenshot 2024-08-15 at 18 32 13

@OXY2DEV
Copy link
Owner

OXY2DEV commented Aug 15, 2024

I am more curious about why the list items aren't indented by the formatter as most actual previewers don't care about the whitespaces.

Is there an option to handle this in the settings which I missed?

There is not simply because there wasn't an easy way to check for that. But I will probably have to revise the logic to see if it's even possible.

@devboy
Copy link
Author

devboy commented Aug 16, 2024

I am more curious about why the list items aren't indented by the formatter as most actual previewers don't care about the whitespaces.

I am using prettier with default settings here.

@OXY2DEV
Copy link
Owner

OXY2DEV commented Aug 18, 2024

Caution

This will not work with block elements(e.g. table, block quotes, code blocks etc.) as they can't have a high number of spaces before them.

Screenshot_2024-08-18-15-36-40-061_com termux-edit

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

Successfully merging a pull request may close this issue.

2 participants