### type headers
anacrolix opened this issue · 6 comments
I assume the tool is intentionally quite opinionated. It doesn't handle headers that were indented ### and beyond. I'd love to know your reasoning for preferring the style it instead uses.
I assume the tool is intentionally quite opinionated.
It is.
It doesn't handle headers that were indented ### and beyond.
It should. Can you elaborate? What input, what did you expect to get, what did you get instead?
In fact, see this line in the test file:
markdownfmt/markdown/main_test.go
Line 169 in 10aae0a
Perhaps the problem is that you didn't have a space after the hashes, ala ###attempted header
? The space is strictly required.
I expected it to leave all the # style headers alone, or also rewrite my ### headers into the ---- and ==== underlined style it uses. It appears that it leaves h3 and further alone?
It's because the underlined styles exist for h1 and h2 only, so h3 has no choice but to use ###
style. See https://daringfireball.net/projects/markdown/syntax#header.
Ok thanks