News for hackers. Stuff that matters.
Re:Markdown.css – Make HTML look like plain-text markdown by TuringTest on Thursday December 29, 2016 @09:07AM (#13277305)
What I don't get is why Markdown is always displayed as plain text, when it's supposedly a format to represent styling. Why can't we have a version of Markdown that gets syntax highlighting according to the actual written markup, without hiding the markup code? I.e. making identical the "code" form and the final "rendered" form.

For example, writing " * this is highlighted * " would be shown as " * this is highlighted * ".

Edit: I've just found http://hackcss.com/ in the comments below, which seems to get it and does what I've explained above, highlighting headers and code with a bold, darker font.

Re:Markdown.css – Make HTML look like plain-text markdown by dejawu on Thursday December 29, 2016 @09:43AM (#13277478)
Some newer Markdown editors will style the raw Markdown in addition to providing the rendered form, such as StackEdit[1] or Nanote[2] (my own work).

[1] https://stackedit.io/editor

[2] https://nanote.co

Re:Markdown.css – Make HTML look like plain-text markdown by akavel on Thursday December 29, 2016 @01:01PM (#13278821)
For a desktop editor, see: http://www.typora.io/ (non affiliated, I just like it, wanted to write something similar)
Re:Markdown.css – Make HTML look like plain-text markdown by TuringTest on Tuesday January 03, 2017 @04:52AM (#13308071)
Yes, Typora's live preview is more or less what I was thinking, showing the markup just for the item rigth below the cursor.

I'd still add a mode like Microsoft Word's "show formatting marks", so that the user can decide whether to see the full markdown text or only the word or line being edited.

Re:Markdown.css – Make HTML look like plain-text markdown by shoover on Thursday December 29, 2016 @09:27AM (#13277404)
Are you asking for this functionality in the editor or browser or something else? Editors do highlight text as you describe, at least in Emacs in markdown-mode and org-mode. Still, my experiments with variable width fonts in these modes have never stuck. As soon as you need to align anything like a header rule, source code, or table, you need a fixed width font. Then it comes down to whether the mode supports customizing that particular face.