3 ms·
Neat! If I use your tool and "Copy HN-ready" and paste here then it works, but oddly if I then edit the post the formatting is lost. Also, if I just manually
by HarHarVeryFunny 5mo ago
Neat!
If I use your tool and "Copy HN-ready" and paste here then it works, but oddly if I then edit the post the formatting is lost.
Also, if I just manually post, starting with a blank line, followed by a couple of lines starting with two spaces (e.g. " aaa", " bbb"), then I'm not getting the <pre> code formatting. Any idea what I might be doing wrong?
- Krysoph 5mo ago. I think HN strips starting blank lines, but it may work when done after a line with some char like: . edit test: 0 ┤ ╭───╮ Homer made burger │ │ ● │ ╭───╮ McBurger 2 ┤ ╰───╯ │ ○ │ ╭─────╮ │ ╰───╯ │ * │ Food truck burger 4 ┤ ╰─────╯ │ │ ╭─────╮ 6 ┤ │ ■ │ this was edited btw │ ╰─────╯ ╭─────╮ 8 ┤ Hairport burger │ ▲ │ │ ╰─────╯ 10 └┬────────────┬───────────┬────────────┬───────────┬────────────┬ $0 $8 $16 $24 $32 $40 Works fine for me, even after multiple edits the formatting stays the same ¯\(ツ)/¯
- HarHarVeryFunny 5mo agoThanks - it was HN stripping starting blank lines (incl. after an edit).
- HarHarVeryFunny 5mo agofoo aa bb