diff --git a/src/applications/files/markup/PhabricatorEmbedFileRemarkupRule.php b/src/applications/files/markup/PhabricatorEmbedFileRemarkupRule.php --- a/src/applications/files/markup/PhabricatorEmbedFileRemarkupRule.php +++ b/src/applications/files/markup/PhabricatorEmbedFileRemarkupRule.php @@ -160,7 +160,7 @@ } return phutil_tag( - 'div', + ($options['layout'] == 'inline' ? 'span' : 'div'), array( 'class' => $layout_class, ),