Re:Markdown.css – Make HTML look like plain-text markdown
by throwaway2016a on Wednesday December 28, 2016 @07:12PM
(#13274797)
The underline on the <h1> just uses the :after psuedo class with some absolute positioning and some padding. Just like almost every other class here. I'm curious what sticks out to you as extra clever with the <h1> vs the other elements that also use :before / :after
[ Parent
| on HN ]
Re:Markdown.css – Make HTML look like plain-text markdown
by matchu on Thursday December 29, 2016 @01:25AM
(#13275976)
The tricky part is rendering the correct number of equals signs. Markdown.css fakes it by rendering a constant large number of equals signs, then setting the width so that only some are visible.
Re:Markdown.css – Make HTML look like plain-text markdown
by timlyo on Thursday December 29, 2016 @05:06AM
(#13276555)
It seems to work by printing lots of `=` beneath, and then hiding the overflow. Inspecting and changing the title's width reveals more `=` and makes it possible to display half of one.