Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments on posts use markdown instead of HTML #41

Open
rastersize opened this issue May 14, 2013 · 2 comments
Open

Comments on posts use markdown instead of HTML #41

rastersize opened this issue May 14, 2013 · 2 comments

Comments

@rastersize
Copy link
Contributor

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
Copy link
Contributor Author

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

@gothma
Copy link

gothma commented May 14, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants