Viktor Yakubiv
Viktor Yakubiv
@wooorm and @ChristianMurphy thank you for sharing your details. I also have assumed ~custom-elements~ (rather) HTML elements naming convention but I wanted to clarify this. If this is not a...
> basically alphanumerical and higher-than-ascii punctuation @wooorm do you have `\w` in mind or anything else? --- I have [found](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Unicode_character_class_escape#general_categories) that `/[\p{L}\p{N}][\p{L}\p{N}.-_]*/u` might work just fine, where `\p{N}` is a...
If the proposal seems to be decent, I can implement the solution. This would be the major version bump as the options interface changes. I don't see an option for...
Let me elaborate with examples. #### `indentInitial: true` (current default) ```html Hello 👋 Indented by 1 level ``` #### `indentInitial: false` (`initialIndentLevel: 0`) ```html Hello 👋 Indented by 0 level...
From one perspective, I agree. It does not look pretty when you write complete HTML. In contrast, I like writing code heavily omitting tags. When I start with the following...
> Why do you write pretty markup, format it, and then not use optional tags? I can make up a linting case for this. Imagine, you want to write HTML,...
Sorry, I missed to answer the question about the look. I expect it to remain in the same way as it was before processing: #### Input (copied from above) ```html...
> AST transforms and formatters are not for small changes. In my case, the changes are not small. I cannot go without the formatter. For example, let's take a photo...
What you suggest, does make sense. I will look into ways to reformat only particular elements. As far as I am aware, there is no `hast-util-format` that would format particular...
@Nedomas, as @wooorm already recommended to me, the best way might be to directly adjust the position after formatting. I assume, this should be something as straightforwars in your case...