Closed goodbomb closed 8 months ago
Could it be that something ate your leading whitespace after turndown generated it correctly?
Hmm, good question. If you're saying it's working, then there must be something else going on. I'll dive deeper into my code and see what's up. I am using "prettier" on the HTML for debugging purposes before feeding it into turndown. Maybe that's impacting it. Thanks.
Yeah, that was it. I was accidentally beautifying the output, which stripped the leading whitespace.
I have the following valid HTML:
However the output ends up being this:
There is no indentation to create the nested format for the list items. Is there some kind of setting I'm missing to properly convert this?
Any help would be appreciated. Thanks!