Live data from Hacker News

Show HN: Markdown page – Create a web page with just markdown

github.com

41–50 of 86 posts

Re: Show HN: Markdown page – Create a web page with just markdown

#41

Why can't web browsers render basic markdown natively (no plugins)? Wouldn't that be a much simpler and more secure parser than HTML? A Markdown Web would look like the early Web.

I really wish they would. With just a small number of elements added to the Markdown standard (e.g. for plots, videos and audios and, perhaps, a standard way include referenced files in the markdown file itself) this would make the web (and e-mail!) I want.

Re: Show HN: Markdown page – Create a web page with just markdown

#42

Earlier quoted context omitted.

it is just as easy to read and write as markdown, and it does not require javascript libraries to be rendered

Is there a WYSIWYG simple editor for creating documents in HTML5? Something that's basically wordpad and produces pages that actually look the same on different browsers? Documentation for my projects is currently in raw ASCII because I couldn't find a satisfactory solution.

WYSIWYG editors are evil as they mostly produce crap code, good news are you don't need a WYSIWYG editor with markdown as it's very easy for [almost] everybody to write by hand.

Re: Show HN: Markdown page – Create a web page with just markdown

#45

Why can't web browsers render basic markdown natively (no plugins)? Wouldn't that be a much simpler and more secure parser than HTML? A Markdown Web would look like the early Web.

Not standard, but it shouldn't be very hard to write an extension to handle this use case. I would like to see that happen, actually.

Re: Show HN: Markdown page – Create a web page with just markdown

#46
post #38
post #7

A neat party trick, but what actual use-case is there that isn't better served by server-side Markdown to HTML conversion?

Here are three use-cases: 1. You are editing documents locally on your computer. This lets you double-click to view nice markdown in a web browser with a `file://` url. 2. You are editing a website, but don't have control over the server-side code. 3. You don't want to install a markdown rendering library on the server.

> You are editing a website, but don't have control over the server-side code.

You don't have control over the server-side code, but it will let you inject tags into the content? That seems a bit weird.

Re: Show HN: Markdown page – Create a web page with just markdown

#48
I really like this, thank you for writing and sharing it!

I take notes and write personal documentation in Markdown for tickets and projects. Nowadays I usually write in Visual Studio Code or Vim. I can see myself using this to share pages with people. Although I wonder how my syntax highlighting will work - I guess I'll have to write a shell script to copy the .md file to .html and insert the call to the md-page.js at the top.

Re: Show HN: Markdown page – Create a web page with just markdown

#50

Why can't web browsers render basic markdown natively (no plugins)? Wouldn't that be a much simpler and more secure parser than HTML? A Markdown Web would look like the early Web.

I've thought before that it would be neat to have the ability to specify an alternative markup inside any element. A kind of:

Browser now _interprets_ content as markdown until end of div.

It would make user-submitted content so much better since you could just directly embed bbcode, markdown, etc. without needing to parse it to html or validate that their submission is valid html/only using approved tags, etc.

Post reply on HN