Skip to content

Commit 28592ab

Browse files
committed
gist: code fmt
1 parent 13bfeec commit 28592ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ $(function(){
55
function update(){
66
$.get(URL, function(data){
77
const content = Object.values(data.files)[0].content;
8-
gist.html(content.split("\n").join("<br/>").split(" ").join("&nbsp;"));
8+
gist.html(
9+
"<code>" +
10+
content.split("\n").join("<br/>").split(" ").join("&nbsp;")
11+
+ "</code>");
912
});
1013
}
1114
update();

0 commit comments

Comments
 (0)