opfo / app

An iOS app for the EDA397 course made at Chalmers in the spring of 2013.
7 stars 1 forks source link

Comments on posts use markdown instead of HTML #41

Open rastersize opened 11 years ago

rastersize commented 11 years ago

Because one format is not good enough.

We might be able to use jverkoey/NSAttributedStringMarkdownParser to parse the Markdown into an NSAttributedString and then use that.

Pseudo-code:

NSAttributedStringMarkdownParser *parser = [[NSAttributedStringMarkdownParser alloc] init];
NSAttributedString *body = [parser attributedStringFromMarkdownString:theComment.body];
self.bodyTextView.attributedText = body;

/cc @gothma

rastersize commented 11 years ago

For those weird [tag:a-tag] things, let’s just do a string replace of them (i.e. removing them…).

gothma commented 11 years ago

Complete possible syntax at: http://stackoverflow.com/editing-help For the codeblocks we could fork the MarkdownParser and adding a monospaced font attribute or do it lateron by ourselfs.