Skip to content

Comment on Markdown.css – make HTML look like plain-textparent

Comments

The magic is the quirks in how `display: table-cell` makes it like a block, but only as wide as the text, then the pseudo element with equals signs is positioned absolutely inside. Fortunately, most browsers allow this, but firefox doesn't let things be positioned absolute inside a `table-cell`, so I make FF just fall back to `display: block` https://github.com/mrcoles/markdown-css/blob/master/markdown...

interesting!

in the same vein as the h1 equals, i like the blockquote brackets implementation as well:

https://github.com/mrcoles/markdown-css/blob/0d00981143172aa...

yeah, the \A makes a newline and the `white-space: pre` makes that work like a <br>

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.