Re:Markdown.css – Make HTML look like plain-text markdown
by coldtea on Thursday December 29, 2016 @03:28AM
(#13276291)
>Having a one-to-one correspondence between representation and rendering is the main thing that makes markdown useful.
And looking simple with minimal formatting is the second thing. This idea taps on that second thing.
Re:Markdown.css – Make HTML look like plain-text markdown
by lisper on Thursday December 29, 2016 @08:53AM
(#13277232)
If that's your goal, and your source is already in HTML, then the best solution is no CSS at all.
Re:Markdown.css – Make HTML look like plain-text markdown
by dannypgh on Thursday December 29, 2016 @09:09AM
(#13277316)
Isn't the default styling of HTML in browsers mostly just due to historical accidents?
Re:Markdown.css – Make HTML look like plain-text markdown
by lisper on Thursday December 29, 2016 @04:47PM
(#13280437)
Probably. So?
Re:Markdown.css – Make HTML look like plain-text markdown
by chx on Thursday December 29, 2016 @01:31AM
(#13275996)
It only needs a little JS to make it work, though. You just need to manipulate the selected text as described here http://stackoverflow.com/a/36582615/308851 and https://github.com/niklasvh/jquery.plugin.clipboard here.
Re:Markdown.css – Make HTML look like plain-text markdown
by blowski on Thursday December 29, 2016 @05:11AM
(#13276570)
So
1. Take some HTML
2. Use CSS to make it look like Markdown
3. Use JavaScript to make it behave like Markdown.
Why not skip step 2?
That's not what this is. Try copying the markdown so you can edit it as you suggest and you will find it doesn't work. The output looks like markdown, but it isn't markdown, and that's the source of the negative reactions. Having a one-to-one correspondence between representation and rendering is the main thing that makes markdown useful. Making something look like markdown but not actually be markdown strips it of nearly all of its utility.