<p> can't be inside another one - breaks direction detection
we are applying direction of content on <p> & markdownify always generates a <p> so we have something like <p class="ltr"><p>...</p></p> but paragraph can't be inside another paragraph & browsers sees something like <p class="rtl"></p><p>...</p></p> so applied direction will be ignored
This commit is contained in:
parent
ad11bd2a31
commit
22bb6177d4
3 changed files with 3 additions and 3 deletions
|
|
@ -14,6 +14,6 @@
|
||||||
.content
|
.content
|
||||||
.from
|
.from
|
||||||
= person_link(comment.author)
|
= person_link(comment.author)
|
||||||
%p{ :class => direction_for(comment.text) }
|
%div{ :class => direction_for(comment.text) }
|
||||||
= markdownify(comment, :youtube_maps => comment[:youtube_titles])
|
= markdownify(comment, :youtube_maps => comment[:youtube_titles])
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,6 @@
|
||||||
%time.timeago{:datetime => message.created_at}
|
%time.timeago{:datetime => message.created_at}
|
||||||
= how_long_ago(message)
|
= how_long_ago(message)
|
||||||
|
|
||||||
%p{ :class => direction_for(message.text) }
|
%div{ :class => direction_for(message.text) }
|
||||||
= markdownify(message)
|
= markdownify(message)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,5 @@
|
||||||
- for photo in photos[1..photos.size]
|
- for photo in photos[1..photos.size]
|
||||||
= link_to (image_tag photo.url(:thumb_small), :class => 'stream-photo thumb_small', 'data-small-photo' => photo.url(:thumb_medium), 'data-full-photo' => photo.url), photo_path(photo), :class => 'stream-photo-link'
|
= link_to (image_tag photo.url(:thumb_small), :class => 'stream-photo thumb_small', 'data-small-photo' => photo.url(:thumb_medium), 'data-full-photo' => photo.url), photo_path(photo), :class => 'stream-photo-link'
|
||||||
|
|
||||||
%p{:class => direction_for(post.text)}
|
%div{:class => direction_for(post.text)}
|
||||||
!= markdownify(post, :youtube_maps => post[:youtube_titles])
|
!= markdownify(post, :youtube_maps => post[:youtube_titles])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue