bernat/best_in_place — Issue #106: :display_with isn't applied after editing
Author: squatch
Created: 2012-02-27 05:47:02+00:00
State: open

This issue was reported in the comments of issue #78 after it was closed.

Following up from the comments in #78, I've confirm this is reproducible in the test_app (but not at http://bipapp.heroku.com/ -- looks like that's running an older test_app?).

To reproduce:
1. Go to the user details page for a user.
2. Copy/paste the markdown sample text below into the "User description" field and click elsewhere to remove focus from the text area.
3. Refresh the page. Notice the markdown text has been converted to HTML formatting.
4. Click the text to switch to text area, then click outside the text area to save & switch back to normal text. Now notice the text is the raw markdown. It should've been converted to HTML formatting by :display_with.

Markdown sample text follows (grabbed from http://daringfireball.net/projects/markdown/basics).

A First Level Header
====================

A Second Level Header
---------------------

Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.