mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user