Closed FredericEspiau closed 3 months ago
Hi @FredericEspiau , thanks for the report! I have included a fix to ensure the HTML strings are properly formatted before processing them. Let me know if this fixes the problem!
If you have any suggestions or other reports, please feel free to open new issues or PRs, and if you think my work was helpful in any way, a star on the repo is always welcome!
Describe the bug
Generated block has a
indent
value ofnull
To Reproduce
Input file
Will give
ident
isnull
This is because here: https://github.com/matteodf/html-to-slack/blob/main/src/utils/index.ts#L68
The first parameter for the
replace
is not indented like theinput
so it can't match and the second parameter isn't insertedinput
isThe first parameter is
Expected behavior
Having
0
for theindent