Fixed Marked adding unnecessary message spacing.

Also set Marked options so that GitHub Flavored Markdown is supported
and HTML is sanitized.
This commit is contained in:
WrinklyNinja
2014-07-16 12:11:19 +01:00
parent cd82818dcc
commit 1223ca5469
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -353,6 +353,9 @@ li.say, li.error, li.warn {
padding:0.5em 1em;
list-style:disc inside;
}
li.say > p, li.error > p, li.warn > p {
margin: 0;
}
li.error{
background:#ff9090;
}
+6
View File
@@ -901,6 +901,12 @@ function getGameData() {
require(['js/marked'], function(response) {
marked = response;
/* Make sure settings are what I want. */
marked.setOptions({
gfm: true,
tables: true,
sanitize: true
});
initGlobalVars();
getGameData();
if (isStorageSupported()) {