Преглед изворни кода

Merge pull request #768 from sharelatex/jel-mathjax-wiki

Add MathJax to wiki pages and max-width for images
Jessica Lawshe пре 8 година
родитељ
комит
b9a63fe216

+ 2 - 1
services/web/public/coffee/main/learn.coffee

@@ -1,5 +1,6 @@
 define [
 	"base"
+	"directives/mathjax"
 	"services/algolia-search"
 ], (App) ->
 
@@ -55,4 +56,4 @@ define [
 					hits = _.map response.hits, buildHitViewModel
 					updateHits hits
 
-
+	App.controller "LearnController", () -> 

+ 4 - 0
services/web/public/stylesheets/app/wiki.less

@@ -13,6 +13,10 @@
 			font-size: 18px;
 		}
 	}
+
+	img {
+		max-width: 100%;
+	}
 	
 	.page-header {
 		a {