Skip to content

Commit

Permalink
improve post editing
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Jan 5, 2018
1 parent 06172c3 commit b4eef06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions static/js/posts/edit.js
Expand Up @@ -38,12 +38,12 @@ $(function() {
}
});

// isn't loading existing values for some reason
// simplemde.value($("#text").val());
// fix rendering previews
$(".editor-preview").addClass("content");

marked.setOptions({
highlight: function(code) { return hljs.highlightAuto(code).value; },
sanitize: true,
// sanitize: true, // NOTE only disabled for admins!
smartypants: true
});
hljs.initHighlightingOnLoad();
Expand Down
2 changes: 1 addition & 1 deletion views/default2.moon
Expand Up @@ -99,7 +99,7 @@ class extends html.Widget
h1 class: "title", @title
if @subtitle
h2 class: "subtitle", @subtitle
div class: "container", ->
div class: "container content", ->
@content_for "inner"
nav class: "navbar is-fixed-bottom is-light", ->
div class: "navbar-brand", ->
Expand Down

0 comments on commit b4eef06

Please sign in to comment.