-
Notifications
You must be signed in to change notification settings - Fork 9
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
[feat]: Customize/turn off formatting rules #216
Comments
Removed last |
Yes, all initial formatting is deleted. A new one is created. Show me how you would like and I'll think about how best to do it. related #217 |
My problem is that when using <!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
</head>
<body>
<h2>Extend:</h2>
<div class="posthtml-include-output">
<div class="content">
Read
</div>
<footer>
footer
</footer>
</div>
</body>
</html> so I want to just fix horizontal indentation of HTML outputted by these plugins. I guess this is probably even worth a separate plugin like |
Probably better use something like this after webpack build: https://github.com/beautify-web/js-beautify#css--html, it appears like a big task to adapt |
you will be easier to configure |
Thanks, would appreciate it. |
@andreyvolokitin Hi, So far I've added an option for management And I also remember about the example that promised, now |
Have I understood it correctly: |
@andreyvolokitin remove all input.html <div>
<div>test</test>
</div> output.html <div>
<div>test</test>
</div> #220 to save the current structure with formatted indents. |
OKay, so the process is this:
I think this is what you meant |
@andreyvolokitin 🎉🎉🎉 try.
|
Thanks! Will check it out |
Is it possible currently? In the docs I see 3 rules available for customization. For now, I need to turn off vertical indentation (it honestly looks somewhat confusing, because it makes empty lines in unexpected places). All in all, I would prefer to just use horizontal indentation because that's what gets broken while using
posthtml-include
and such. Everything else I handle myself and would prefer to keep unchangedThe text was updated successfully, but these errors were encountered: