Browse Source

fix emoji rendering in wiki

Yoginth 7 năm trước cách đây
mục cha
commit
b7a2773137
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      templates/repo/wiki/view.tmpl

+ 2 - 2
templates/repo/wiki/view.tmpl

@@ -48,7 +48,7 @@
 			</div>
 		</div>
 		<div class="ui dividing header">
-			{{$title}}
+			<span class="has-emoji">{{$title}}</span>
 			{{if and .IsRepositoryWriter (not .Repository.IsMirror)}}
 				<div class="ui right">
 					<a class="ui small button" href="{{.RepoLink}}/wiki/{{EscapePound .PageURL}}/_edit">{{.i18n.Tr "repo.wiki.edit_page_button"}}</a>
@@ -61,7 +61,7 @@
 				{{.i18n.Tr "repo.wiki.last_commit_info" .Author.Name $timeSince | Safe}}
 			</div>
 		</div>
-		<div class="markdown">
+		<div class="markdown has-emoji">
 			{{.content | Str2html}}
 		</div>
 	</div>