Live data from Hacker News

Show HN: Writebin, an inline markdown editor

writebin.io

21–30 of 50 posts

Re: Show HN: Writebin, an inline markdown editor

#21

Earlier quoted context omitted.

You're right. We chose not to allow hand-wrapped paragraphs because the newlines have no effect on the resulting rendered HTML. In some cases, it will allow newlines (lists, blockquotes).

It would be great to autoindent next line when writing code blocks (that start with 4 space, for example).

Sounds like you're looking for tabIndent.js

Re: Show HN: Writebin, an inline markdown editor

#22

You might want to be careful about security. Here's a harmless (at the time of writing!) XSS vulnerability: http://writebin.io/d/GTFx9CxV ← that there is an example of the sort of security hole (XSS) this has. Remember: Markdown is by default a *horribly* insecure format.

Gruber's decision to include html in the markdown "spec" has always perplexed me.

Re: Show HN: Writebin, an inline markdown editor

#23

You might want to be careful about security. Here's a harmless (at the time of writing!) XSS vulnerability: http://writebin.io/d/GTFx9CxV ← that there is an example of the sort of security hole (XSS) this has. Remember: Markdown is by default a *horribly* insecure format.

You have to be pretty careful with it, but you can use Bleach to white list the tags.

Re: Show HN: Writebin, an inline markdown editor

#26
post #3

This looks really great, and I had fun playing around with it. One small thing that stuck out: there isn't any way to make a newline. You have to make an entirely new comment. Or is there some shortcut key I'm missing? On a lot of text editors, it's Shift + Enter.

You're right. We chose not to allow hand-wrapped paragraphs because the newlines have no effect on the resulting rendered HTML. In some cases, it will allow newlines (lists, blockquotes).

This breaks simple things, like trying to do multiple lines of four-space indented code formatting, for example.

It also breaks trying to type out quotes and nested quotes.

Re: Show HN: Writebin, an inline markdown editor

#27
post #3

This looks really great, and I had fun playing around with it. One small thing that stuck out: there isn't any way to make a newline. You have to make an entirely new comment. Or is there some shortcut key I'm missing? On a lot of text editors, it's Shift + Enter.

You're right. We chose not to allow hand-wrapped paragraphs because the newlines have no effect on the resulting rendered HTML. In some cases, it will allow newlines (lists, blockquotes).

It was one of the first things I tried and it immediately disturbed the normal flow. Markdown normally allows for a "one line per sentence"-style. If you are used to that, the current behavior quickly becomes annoying.

Re: Show HN: Writebin, an inline markdown editor

#28

You might want to be careful about security. Here's a harmless (at the time of writing!) XSS vulnerability: http://writebin.io/d/GTFx9CxV ← that there is an example of the sort of security hole (XSS) this has. Remember: Markdown is by default a *horribly* insecure format.

Thanks for pointing this out. Haven't had much time to consider things like this yet.

I have this request: could you please make security your first priority when you design things? If you leave it until later, it'll keep on being left until later, and it's far too likely never to happen. At the very least, it is likely to be significantly more expensive to implement later and is more likely to have holes.

Re: Show HN: Writebin, an inline markdown editor

#30
post #22

You might want to be careful about security. Here's a harmless (at the time of writing!) XSS vulnerability: http://writebin.io/d/GTFx9CxV ← that there is an example of the sort of security hole (XSS) this has. Remember: Markdown is by default a *horribly* insecure format.

Gruber's decision to include html in the markdown "spec" has always perplexed me.

I'm pretty sure that's because Markdown was written specifically for pre-processing HTML blog posts. It was never meant to be a full-on replacement for HTML, but simply a way to make the HTML that you're most likely to use when writing such a post easier to write. If I'm the only person who can post to my blog, there are no security issues introduced by using Markdown. (Or at least, no more security issues than would be introduced if I could use pure HTML for posting on my blog.)
Post reply on HN